Yoast\WP\SEO\Helpers

First_Time_Configuration_Notice_Helper::should_display_first_time_configuration_notice │ public │ Yoast 1.0

Determines whether and where the "First-time SEO Configuration" admin notice should be displayed.

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

Хуков нет.

Возвращает

bool. Whether the "First-time SEO Configuration" admin notice should be displayed.

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

$First_Time_Configuration_Notice_Helper = new First_Time_Configuration_Notice_Helper();
$First_Time_Configuration_Notice_Helper->should_display_first_time_configuration_notice();

Код First_Time_Configuration_Notice_Helper::should_display_first_time_configuration_notice() Yoast 28.9

public function should_display_first_time_configuration_notice() {
	if ( ! $this->options_helper->get( 'dismiss_configuration_workout_notice', false ) === false ) {
		return false;
	}
	if ( ! $this->on_wpseo_admin_page_or_dashboard() ) {
		return false;
	}
	return $this->first_time_configuration_not_finished();
}