WPSEO_Admin_Gutenberg_Compatibility_Notification::manage_notification()
Manages if the notification should be shown or removed.
Метод класса: WPSEO_Admin_Gutenberg_Compatibility_Notification{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
$WPSEO_Admin_Gutenberg_Compatibility_Notification = new WPSEO_Admin_Gutenberg_Compatibility_Notification(); $WPSEO_Admin_Gutenberg_Compatibility_Notification->manage_notification();
Код WPSEO_Admin_Gutenberg_Compatibility_Notification::manage_notification() WPSEO Admin Gutenberg Compatibility Notification::manage notification Yoast 21.6
public function manage_notification() { /** * Filter: 'yoast_display_gutenberg_compat_notification' - Allows developer to disable the Gutenberg compatibility * notification. * * @api bool */ $display_notification = apply_filters( 'yoast_display_gutenberg_compat_notification', true ); if ( ! $this->compatibility_checker->is_installed() || $this->compatibility_checker->is_fully_compatible() || ! $display_notification ) { $this->notification_center->remove_notification_by_id( $this->notification_id ); return; } $this->add_notification(); }