Yoast\WP\SEO\Helpers

Post_Type_Helper::get_indexable_post_types()publicYoast 1.0

Returns the post types that should be indexed.

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

Хуков нет.

Возвращает

Массив. The post types that should be indexed.

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

$Post_Type_Helper = new Post_Type_Helper();
$Post_Type_Helper->get_indexable_post_types();

Код Post_Type_Helper::get_indexable_post_types() Yoast 22.4

public function get_indexable_post_types() {
	$public_post_types   = $this->get_public_post_types();
	$excluded_post_types = $this->get_excluded_post_types_for_indexables();

	$included_post_types = \array_diff( $public_post_types, $excluded_post_types );

	return $this->filter_included_post_types( $included_post_types );
}