public function get_post( $post ) {
		$post_obj = get_post( $post );

		/**
		 * Filter the post.
		 *
		 * Allows plugins to filter the post object as returned by `\WP_REST_Controller::get_post()`.
		 *
		 * @param WP_Post|null $post_obj  The post object as returned by `get_post()`.
		 * @param int|WP_Post  $post      The original value used to obtain the post object.
		 */
		$post = apply_filters( 'rest_the_post', $post_obj, $post );

		return $post;
	}
public function get_post( $post ) {
		$post_obj = get_post( $post );

		/**
		 * Filter the post.
		 *
		 * Allows plugins to filter the post object as returned by `\WP_REST_Controller::get_post()`.
		 *
		 * @param WP_Post|null $post_obj  The post object as returned by `get_post()`.
		 * @param int|WP_Post  $post      The original value used to obtain the post object.
		 */
		$post = apply_filters( 'rest_the_post', $post_obj, $post );

		return $post;
	}
public function get_post ( $ post ) { $ post_obj = get_post ( $ post ) ; /**
		 * Filter the post.
		 *
		 * Allows plugins to filter the post object as returned by `\WP_REST_Controller::get_post()`.
		 *
		 * @param WP_Post|null $post_obj  The post object as returned by `get_post()`.
		 * @param int|WP_Post  $post      The original value used to obtain the post object.
		 */ $ post = apply_filters ( 'rest_the_post' , $ post_obj , $ post ) ; return $ post ; }
Retrieves post data given a post ID or post object.

This is a subset of the functionality of the `get_post()` function, with
the additional functionality of having `the_post` action done on the
resultant post object. This is done so that plugins may manipulate the
post that is used in the REST API.

@see get_post()
@global WP_Query $wp_query

@param int|WP_Post $post Post ID or post object. Defaults to global $post.
@return WP_Post|null A `WP_Post` object when successful.
Retrieves post data given a post ID or post object .