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 20.0

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

	// `array_values`, to make sure that the keys are reset.
	return \array_values( \array_diff( $public_post_types, $excluded_post_types ) );
}