twentyten_remove_gallery_css

Definition:
function twentyten_remove_gallery_css( $css ) {}

Deprecated way to remove inline styles printed when the gallery shortcode is used.
This function is no longer needed or used. Use the use_default_gallery_style filter instead, as seen above.

Parameters

  • $css

Return values

returns:The gallery style filter, with the styles themselves removed.

Source code

function twentyten_remove_gallery_css( $css ) {

	return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );

}

3109

twentyten_posted_in

Definition:
function twentyten_posted_in() {}

Prints HTML with meta information for the current post (category, tags and permalink).

Source code

function twentyten_posted_in() {

	// Retrieves tag list of current post, separated by commas.

	$tag_list = get_the_tag_list( '', ', ' );

	if ( $tag_list ) {

		$posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );

	} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {

		$posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );

	} else {

		$posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );

	}

	// Prints the string, replacing the placeholders.

	printf(

		$posted_in,

		get_the_category_list( ', ' ),

		$tag_list,

		get_permalink(),

		the_title_attribute( 'echo=0' )

	);

}

3107

twentyten_page_menu_args

Definition:
function twentyten_page_menu_args( $args ) {}

Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
To override this in a child theme, remove the filter and optionally add your own function tied to the wp_page_menu_args filter hook.

Parameters

  • $args

Source code

function twentyten_page_menu_args( $args ) {

	$args['show_home'] = true;

	return $args;

}

3105

twentyten_excerpt_length

Definition:
function twentyten_excerpt_length( $length ) {}

Sets the post excerpt length to 40 characters.
To override this length in a child theme, remove the filter and add your own function tied to the excerpt_length filter hook.

Parameters

  • $length

Source code

function twentyten_excerpt_length( $length ) {

	return 40;

}

3103

twentyten_custom_excerpt_more

Definition:
function twentyten_custom_excerpt_more( $output ) {}

Adds a pretty "Continue Reading" link to custom post excerpts.
To override this link in a child theme, remove the filter and add your own function tied to the get_the_excerpt filter hook.

Parameters

  • $output

Return values

returns:Excerpt with a pretty "Continue Reading" link

Source code

function twentyten_custom_excerpt_more( $output ) {

	if ( has_excerpt() && ! is_attachment() ) {

		$output .= twentyten_continue_reading_link();

	}

	return $output;

}

3101