Yoast\WP\SEO\Builders

Indexable_Post_Builder::should_exclude_post()protectedYoast 1.0

Checks whether an indexable should be built for this post.

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

Хуков нет.

Возвращает

true|false. true if the post should be excluded from building, false if not.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->should_exclude_post( $post );
$post(WP_Post) (обязательный)
The post for which an indexable should be built.

Код Indexable_Post_Builder::should_exclude_post() Yoast 22.4

protected function should_exclude_post( $post ) {
	return $this->post_type_helper->is_excluded( $post->post_type );
}