get_the_excerpt

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

Retrieve the post excerpt.

Parameters

  • mixed $deprecated: Not used.

Defined filters

  • get_the_excerpt
    apply_filters('get_the_excerpt', $output)

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

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: