Yoast\WP\SEO\Content_Type_Visibility\Application

Content_Type_Visibility_Dismiss_Notifications::dismiss_notifications()publicYoast 1.0

Dismisses the notification in the notification center when there are no more new content types.

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

Хуков нет.

Возвращает

true|false.

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

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

Код Content_Type_Visibility_Dismiss_Notifications::dismiss_notifications() Yoast 24.6

public function dismiss_notifications() {
	$notification_center = Yoast_Notification_Center::get();
	$notification_center->remove_notification_by_id( 'content-types-made-public' );
	return $this->options->set( 'show_new_content_type_notification', false );
}