WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Actions\Indexing

Indexable_Post_Type_Archive_Indexation_Action::get_post_types_with_archive_pages() private Yoast 1.0

Returns the names of all the post types that have archive pages.

{} Это метод класса: Indexable_Post_Type_Archive_Indexation_Action{}

Хуков нет.

Возвращает

Массив. The list of names of all post types that have archive pages.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_post_types_with_archive_pages();

Код Indexable_Post_Type_Archive_Indexation_Action::get_post_types_with_archive_pages() Yoast 15.6.2

<?php
private function get_post_types_with_archive_pages() {
	// We only want to index archive pages of public post types that have them.
	$public_post_types       = $this->post_type->get_public_post_types( 'object' );
	$post_types_with_archive = \array_filter( $public_post_types, [ $this->post_type, 'has_archive' ] );

	// We only need the post type names, not the objects.
	$post_types = [];
	foreach ( $post_types_with_archive as $post_type_with_archive ) {
		$post_types[] = $post_type_with_archive->name;
	}

	return $post_types;
}