Description
Filters the retrieved post excerpt.
Occurrences
Filename | Line Number |
---|---|
wp-includes/post-template.php | 436 |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php | 1895 |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | 831 |
Parameters
Type | Name | Description |
---|---|---|
string | $post_excerpt | The post excerpt. |
WP_Post | $post | Post object. |
PHP Doc
/**
* Filters the retrieved post excerpt.
*
* @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.
*/