Suppress notifications in the notification center
-
I am attempting to suppress some of the notices in the notification center but can’t seem to get things working properly.
I see that I can filter the user option to get the notices to display as ‘Hidden’ but I’d prefer them to not show up in the notification center at all.
There is a helper function in the notification center PHP class
remove_notification_by_id
, but that doesn’t seem to be doing the trick, although it looks like it should.if ( ! class_exists( 'Yoast_Notification_Center' ) ) { return; } $notification_center = Yoast_Notification_Center::get(); $notification_center->remove_notification_by_id( 'wpseo-outdated-gutenberg-plugin' );
Do you have any tips on how I can go about suppressing these notifications?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Suppress notifications in the notification center’ is closed to new replies.