Summery Summery
Checks the post excerpt and prepare it for single post output.
Syntax Syntax
Parameters Parameters
- $excerpt
-
(Required) The post excerpt.
- $post
-
(Required) Post revision object.
Return Return
(string) Prepared excerpt or empty string.
Source Source
File: wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
if ( empty( $excerpt ) ) { return ''; } return $excerpt; } }
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |