function get_the_excerpt( $deprecated = '' ) {}

Retrieve the post excerpt.


  • 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);



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: Logo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: