• Resolved Evan Herman

    (@eherman24)


    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)
  • Plugin Support amboutwe

    (@amboutwe)

    Unfortunately, there’s a difference between the support we can offer and the level of programming needed to change (core) features of our plugin. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code,?we cannot advise you on how to make such changes. And even though we cannot be of any assistance, you’re completely free to change anything in the plugin to better suit your needs.

    We highly recommend checking out?Code Poet?or?Codeable.io?for available freelance WordPress developers and?Human Made?for development & consultancy.

    Thread Starter Evan Herman

    (@eherman24)

    Thanks @amboutwe.

    I was able to get this resolved by increasing the priority of my function hooked into admin_init.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Suppress notifications in the notification center’ is closed to new replies.