Yoast\WP\SEO\Builders
Indexable_Post_Builder::should_exclude_post()
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() Indexable Post Builder::should exclude post Yoast 24.1
protected function should_exclude_post( $post ) { return $this->post_type_helper->is_excluded( $post->post_type ); }