WP_REST_Revisions_Controller::prepare_excerpt_response

SummerySummery

Checks the post excerpt and prepare it for single post output.

Syntax

WP_REST_Revisions_Controller::prepare_excerpt_response( string $excerpt, WP_Post $post )

ParametersParameters

$excerpt

(string) (Required) The post excerpt.

$post

(WP_Post) (Required) Post revision object.

ReturnReturn

(string) Prepared excerpt or empty string.

SourceSource

File: wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top