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

Yoast\WP\SEO\Commands

Index_Command::__construct() public Yoast 1.0

Generate_Indexables_Command constructor.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$Index_Command = new Index_Command();
$Index_Command->__construct(;
$post_indexation_action(Indexable_Post_Indexation_Action) (обязательный)
The post indexation action.
$term_indexation_action(Indexable_Term_Indexation_Action) (обязательный)
The term indexation action.
$post_type_archive_indexation_action(Indexable_Post_Type_Archive_Indexation_Action) (обязательный)
The post type archive indexation action.
$general_indexation_action(Indexable_General_Indexation_Action) (обязательный)
The general indexation action.
$complete_indexation_action(Indexable_Indexing_Complete_Action) (обязательный)
The complete indexation action.
$prepare_indexation_action(Indexable_Prepare_Indexation_Action) (обязательный)
The prepare indexation action.

Код Index_Command::__construct() Yoast 15.2

<?php
public function __construct(
	Indexable_Post_Indexation_Action $post_indexation_action,
	Indexable_Term_Indexation_Action $term_indexation_action,
	Indexable_Post_Type_Archive_Indexation_Action $post_type_archive_indexation_action,
	Indexable_General_Indexation_Action $general_indexation_action,
	Indexable_Indexing_Complete_Action $complete_indexation_action,
	Indexable_Prepare_Indexation_Action $prepare_indexation_action
) {
	$this->post_indexation_action              = $post_indexation_action;
	$this->term_indexation_action              = $term_indexation_action;
	$this->post_type_archive_indexation_action = $post_type_archive_indexation_action;
	$this->general_indexation_action           = $general_indexation_action;
	$this->complete_indexation_action          = $complete_indexation_action;
	$this->prepare_indexation_action           = $prepare_indexation_action;
}