Yoast\WP\SEO\Helpers

Post_Type_Helper::get_indexable_post_archives()publicYoast 1.0

Returns all indexable post types with archive pages.

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

Хуков нет.

Возвращает

Массив. All post types which are indexable and have archive pages.

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

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

Код Post_Type_Helper::get_indexable_post_archives() Yoast 24.4

public function get_indexable_post_archives() {
	return \array_filter( $this->get_indexable_post_type_objects(), [ $this, 'has_archive' ] );
}