Filters the post data for a REST API response.
$responseWP_REST_Response$postWP_Post$requestWP_REST_Requestwp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1896WP_REST_Posts_Controller::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2199WP_REST_Posts_Controller::prepare_item_for_response() * @since 4.7.0 * * @param WP_REST_Response $response The response object. * @param WP_Post $post Post object. * @param WP_REST_Request $request Request object. */ return apply_filters( "rest_prepare_{$this->post_type}", $response, $post, $request ); } /** * Overwrites the default protected and private title format. * * By default, WordPress will show password protected or private posts with a title ofIntroduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.