Skip to main content

Filter: rest_the_post

Filter the post.

Allows plugins to filter the post object as returned by \WP_REST_Controller::get_post().

Parameters

NameTypeDescription
$post_obj\WP_Post|nullThe post object as returned by get_post().
$postint|\WP_PostThe original value used to obtain the post object.

Source

Defined in includes/webapi/v2/includes/controllers/class-wp-rest-controller.php at line 624