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

Yoast\WP\SEO\Actions\Indexing

Indexable_Post_Indexation_Action::index() public Yoast 1.0

Creates indexables for unindexed posts.

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

Хуков нет.

Возвращает

Indexable[]. The created indexables.

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

$Indexable_Post_Indexation_Action = new Indexable_Post_Indexation_Action();
$Indexable_Post_Indexation_Action->index();

Код Indexable_Post_Indexation_Action::index() Yoast 17.1

public function index() {
	$query = $this->get_select_query( $this->get_limit() );

	// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- Function get_select_query returns a prepared query.
	$post_ids = $this->wpdb->get_col( $query );

	$indexables = [];
	foreach ( $post_ids as $post_id ) {
		$indexables[] = $this->repository->find_by_id_and_type( (int) $post_id, 'post' );
	}

	if ( \count( $indexables ) > 0 ) {
		\delete_transient( static::UNINDEXED_COUNT_TRANSIENT );
		\delete_transient( static::UNINDEXED_LIMITED_COUNT_TRANSIENT );
	}

	return $indexables;
}