Yoast\WP\SEO\Content_Type_Visibility\Application

Content_Type_Visibility_Dismiss_Notifications::maybe_add_settings_notification()publicYoast 1.0

Check if there is a new content type to show notification only once in the settings.

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

Хуков нет.

Возвращает

true|false. Should the notification be shown.

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

$Content_Type_Visibility_Dismiss_Notifications = new Content_Type_Visibility_Dismiss_Notifications();
$Content_Type_Visibility_Dismiss_Notifications->maybe_add_settings_notification();

Код Content_Type_Visibility_Dismiss_Notifications::maybe_add_settings_notification() Yoast 25.1

public function maybe_add_settings_notification() {
	$show_new_content_type_notification = $this->options->get( 'show_new_content_type_notification', false );
	if ( $show_new_content_type_notification ) {
		$this->options->set( 'show_new_content_type_notification', false );
	}
	return $show_new_content_type_notification;
}