Filters the displayed post excerpt.
$post_excerptstringwp-includes/comment.php:3116do_trackbacks()wp-includes/post-template.php:401the_excerpt()wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:929WP_REST_Attachments_Controller::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2034WP_REST_Posts_Controller::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php:914WP_REST_Revisions_Controller::prepare_excerpt_response() * @since 0.71 * * @see get_the_excerpt() * * @param string $post_excerpt The post excerpt. */ echo apply_filters( 'the_excerpt', get_the_excerpt() );} /** * Retrieves the post excerpt. * * @since 0.71Introduced in 0.71. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.