Yoast\WP\SEO\Helpers

Indexing_Helper::set_indexing_actionspublicYoast 1.0

Sets the actions.

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

Хуков нет.

Возвращает

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

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

$Indexing_Helper = new Indexing_Helper();
$Indexing_Helper->set_indexing_actions( $post_indexation, $term_indexation, $post_type_archive_indexation, $general_indexation, $post_link_indexing_action, $term_link_indexing_action );
$post_indexation(Indexable_Post_Indexation_Action) (обязательный)
The post indexing action.
$term_indexation(Indexable_Term_Indexation_Action) (обязательный)
The term indexing action.
$post_type_archive_indexation(Indexable_Post_Type_Archive_Indexation_Action) (обязательный)
The posttype indexing action.
$general_indexation(Indexable_General_Indexation_Action) (обязательный)
The general indexing (homepage etc) action.
$post_link_indexing_action(Post_Link_Indexing_Action) (обязательный)
The post crosslink indexing action.
$term_link_indexing_action(Term_Link_Indexing_Action) (обязательный)
The term crossling indexing action.

Код Indexing_Helper::set_indexing_actions() Yoast 26.5

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;
}