WordPress at Your Fingertips
filter is not described

rest_prepare_status filter-hook . WP 4.7.0

Filters a post status returned from the REST API.

Allows modification of the status data right before it is returned.


add_filter( 'rest_prepare_status', 'filter_function_name_7833', 10, 3 );
function filter_function_name_7833( $response, $status, $request ){
	// filter...

	return $response;
The response object.
The original post status object.
Request used to generate the response.


Since 4.7.0 Introduced.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php 281
return apply_filters( 'rest_prepare_status', $response, $status, $request );

Where in WP core the hook is used WordPress

Usage not found.