A HitchHackers guide through WordPress


Home | Pages | Archives


get_the_excerpt

February 12, 2011 12:58 am

Definition:
function get_the_excerpt( $deprecated = '' ) {}

Retrieve the post excerpt.

Parameters

Defined filters

Source code

function get_the_excerpt( $deprecated = '' ) {

	if ( !empty( $deprecated ) )

		_deprecated_argument( __FUNCTION__, '2.3' );



	global $post;

	$output = $post->post_excerpt;

	if ( post_password_required($post) ) {

		$output = __('There is no excerpt because this is a protected post.');

		return $output;

	}



	return apply_filters('get_the_excerpt', $output);

}

1829

Rate this:

Posted by Thorsten

Categories: /wp-includes/post-template.php, Documentation, Files, Filters, Filters by letter g, Functions, Functions by letter g

Tags: , ,

Leave a Reply



Mobile Site | Full Site


Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.