Yoast\WP\SEO\Helpers

Indexing_Helper::set_indexing_actions()publicYoast 1.0

Sets the actions.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$Indexing_Helper = new Indexing_Helper();
$Indexing_Helper->set_indexing_actions(;

Код Indexing_Helper::set_indexing_actions() Yoast 22.4

public function set_indexing_actions(
	Indexable_Post_Indexation_Action $post_indexation,
	Indexable_Term_Indexation_Action $term_indexation,
	Indexable_Post_Type_Archive_Indexation_Action $post_type_archive_indexation,
	Indexable_General_Indexation_Action $general_indexation,
	Post_Link_Indexing_Action $post_link_indexing_action,
	Term_Link_Indexing_Action $term_link_indexing_action
) {
	$this->indexing_actions = [
		$post_indexation,
		$term_indexation,
		$post_type_archive_indexation,
		$general_indexation,
		$post_link_indexing_action,
		$term_link_indexing_action,
	];

	// Coincidentally, the background indexing actions are the same with the Free indexing actions for now.
	$this->background_indexing_actions = $this->indexing_actions;
}