Yoast\WP\SEO\Commands

Index_Command::__construct()publicYoast 1.0

Generate_Indexables_Command constructor.

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

Хуков нет.

Возвращает

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

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

$Index_Command = new Index_Command();
$Index_Command->__construct(;

Код Index_Command::__construct() Yoast 22.4

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,
	Indexing_Prepare_Action $prepare_indexing_action,
	Post_Link_Indexing_Action $post_link_indexing_action,
	Term_Link_Indexing_Action $term_link_indexing_action,
	Indexable_Helper $indexable_helper
) {
	$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_indexing_action             = $prepare_indexing_action;
	$this->post_link_indexing_action           = $post_link_indexing_action;
	$this->term_link_indexing_action           = $term_link_indexing_action;
	$this->indexable_helper                    = $indexable_helper;
}