Yoast\WP\SEO\Helpers
First_Time_Configuration_Notice_Helper::first_time_configuration_not_finished
Determines if the first time configuration is completely finished.
Метод класса: First_Time_Configuration_Notice_Helper{}
Хуков нет.
Возвращает
true|false.
Использование
$First_Time_Configuration_Notice_Helper = new First_Time_Configuration_Notice_Helper(); $First_Time_Configuration_Notice_Helper->first_time_configuration_not_finished();
Код First_Time_Configuration_Notice_Helper::first_time_configuration_not_finished() First Time Configuration Notice Helper::first time configuration not finished Yoast 27.3
public function first_time_configuration_not_finished() {
if ( ! $this->user_can_do_first_time_configuration() ) {
return false;
}
if ( $this->is_first_time_configuration_finished() ) {
return false;
}
if ( $this->options_helper->get( 'first_time_install', false ) !== false ) {
return ! $this->are_site_representation_name_and_logo_set() || $this->indexing_helper->get_unindexed_count() > 0;
}
if ( $this->indexing_helper->is_initial_indexing() === false ) {
return false;
}
if ( $this->indexing_helper->is_finished_indexables_indexing() === true ) {
return false;
}
$this->show_alternate_message = true;
return ! $this->are_site_representation_name_and_logo_set();
}