Yoast\WP\SEO\Elementor\Infrastructure

Request_Post::get_post()publicYoast 1.0

Retrieves the WP_Post, applicable to the current request.

Метод класса: Request_Post{}

Хуков нет.

Возвращает

WP_Post|null.

Использование

$Request_Post = new Request_Post();
$Request_Post->get_post(): ?WP_Post;

Код Request_Post::get_post() Yoast 24.4

public function get_post(): ?WP_Post {
	return \get_post( $this->get_post_id() );
}