WPSEO_Upgrade::remove_notifications_for_141()publicYoast 1.0

Removes notifications from the Notification center for the 14.1 upgrade.

{} Это метод класса: WPSEO_Upgrade{}

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Upgrade = new WPSEO_Upgrade();
$WPSEO_Upgrade->remove_notifications_for_141();

Код WPSEO_Upgrade::remove_notifications_for_141() Yoast 19.7.1

public function remove_notifications_for_141() {
	Yoast_Notification_Center::get()->remove_notification_by_id( 'wpseo-dismiss-recalculate' );
	Yoast_Notification_Center::get()->remove_notification_by_id( 'wpseo-dismiss-blog-public-notice' );
	Yoast_Notification_Center::get()->remove_notification_by_id( 'wpseo-links-table-not-accessible' );
	Yoast_Notification_Center::get()->remove_notification_by_id( 'wpseo-post-type-archive-notification' );
}