Yoast\WP\SEO\Helpers

First_Time_Configuration_Notice_Helper::is_first_time_configuration_finishedpublicYoast 1.0

Whether all steps of the first-time configuration have been finished.

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

Хуков нет.

Возвращает

true|false. Whether the first-time configuration has been finished.

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

$First_Time_Configuration_Notice_Helper = new First_Time_Configuration_Notice_Helper();
$First_Time_Configuration_Notice_Helper->is_first_time_configuration_finished( $for_task_list );
$for_task_list(true|false)
Whether this is called for the task list.
По умолчанию: false

Код First_Time_Configuration_Notice_Helper::is_first_time_configuration_finished() Yoast 26.9

public function is_first_time_configuration_finished( $for_task_list = false ) {
	$configuration_finished_steps     = $this->options_helper->get( 'configuration_finished_steps', [] );
	$number_of_steps_of_completed_ftc = ( $for_task_list ) ? 4 : 3;

	return \count( $configuration_finished_steps ) === $number_of_steps_of_completed_ftc;
}