Uses
Uses | Description |
---|---|
wp-includes/plugin.php: apply_filters() | Calls the callback functions that have been added to a filter hook. |
wp-includes/post-template.php: the_excerpt | Filters the displayed post excerpt. |
Checks the post excerpt and prepare it for single post output.
(string) (Required) The post excerpt.
(WP_Post) (Required) Post revision object.
(string) Prepared excerpt or empty string.
File: wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
protected function prepare_excerpt_response( $excerpt, $post ) { /** This filter is documented in wp-includes/post-template.php */ $excerpt = apply_filters( 'the_excerpt', $excerpt, $post ); if ( empty( $excerpt ) ) { return ''; } return $excerpt; }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_revisions_controller/prepare_excerpt_response