WPSEO_Upgrade::set_indexation_completed_option_for_145()publicYoast 1.0

Checks if the indexable indexation is completed. If so, sets the indexables_indexation_completed option to true, else to false.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Upgrade = new WPSEO_Upgrade();
$WPSEO_Upgrade->set_indexation_completed_option_for_145();

Код WPSEO_Upgrade::set_indexation_completed_option_for_145() Yoast 19.7.2

public function set_indexation_completed_option_for_145() {
	WPSEO_Options::set( 'indexables_indexation_completed', YoastSEO()->helpers->indexing->get_limited_filtered_unindexed_count( 1 ) === 0 );
}