Filters the retrieved post excerpt.
$post_excerptstring$postWP_Postwp-includes/post-template.php:436get_the_excerpt()wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:926WP_REST_Attachments_Controller::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2031WP_REST_Posts_Controller::prepare_item_for_response() * @since 1.2.0 * @since 4.5.0 Introduced the `$post` parameter. * * @param string $post_excerpt The post excerpt. * @param WP_Post $post Post object. */ return apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );} /** * Determines whether the post has a custom excerpt. * * For more information on this and similar theme functions, check outIntroduced in 4.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.