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

Yoast\WP\SEO\Actions\Importing

Aioseo_Posts_Importing_Action::index() public Yoast 1.0

Imports AIOSEO meta data and creates the respective Yoast indexables and postmeta.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код Aioseo_Posts_Importing_Action::index() Yoast 17.6

public function index() {
	if ( ! $this->wpdb_helper->table_exists( $this->get_table() ) ) {
		return;
	}

	$limit             = $this->get_limit();
	$aioseo_indexables = $this->wpdb->get_results( $this->query( $limit ), ARRAY_A );

	$last_indexed_aioseo_id = 0;
	foreach ( $aioseo_indexables as $aioseo_indexable ) {
		$indexable = $this->indexable_repository->find_by_id_and_type( $aioseo_indexable['post_id'], 'post' );

		// Let's ensure that the current post id represents something that we want to index (eg. *not* shop_order).
		if ( ! \is_a( $indexable, 'Yoast\WP\SEO\Models\Indexable' ) ) {
			continue;
		}

		$indexable = $this->map( $indexable, $aioseo_indexable );
		$indexable->save();

		// To ensure that indexables can be rebuild after a reset, we have to store the data in the postmeta table too.
		$this->indexable_to_postmeta->map_to_postmeta( $indexable );

		$last_indexed_aioseo_id = $aioseo_indexable['id'];
	}

	$cursor_id = $this->get_cursor_id();
	$this->set_cursor( $this->options, $cursor_id, $last_indexed_aioseo_id );
}