• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Programming / Yoast SEO Eliminate Notifications

Yoast SEO Eliminate Notifications

Last updated on April 26, 2016 by Sal Ferrarello

I am a huge fan of the WordPress plugin Yoast SEO, however I’m not a big fan of the notifications it includes.

Leveraging the power of WordPress filters, we can suppress these messages. The following information is based on Yoast SEO 3.2.3 and may not be accurate for other versions.

The Notifications to Eliminate

There are two specific notifications, I’d like to eliminate:

  1. The Start Tour popup on the menu
  2. The Find Out What’s New alert

Eliminating “Start Tour”

Before displaying the Start Tour popup, Yoast SEO checks for the user_meta value wpseo_ignore_tour and if it has a value of 1, the popup is not displayed (i.e. it is ignored). We can filter this user_meta value and override it with our own value.

add_filter( 'get_user_metadata', 'fe_yseo_tour', 10, 3 );

function fe_yseo_tour( $val, $id, $meta_key ) {
    if ( 'wpseo_ignore_tour' === $meta_key ) {
        return '1';
    }
    return $value;
}

Eliminating “Find Out What’s New”

Before displaying the Find Out What’s New alert, Yoast SEO compares the current Yoast SEO version to the highest version the user has previously viewed. The highest version where the user has viewed the about page is stored in user_meta wpseo_seen_about_version. Again, we can filter this value and override it with our own.

add_filter( 'get_user_metadata', 'fe_yseo_what_new', 10, 3 );

function fe_yseo_what_new( $val, $id, $meta_key ) {
    if ( 'wpseo_seen_about_version' === $meta_key ) {
        return '9999.0.0';
    }
    return $value;
}

Yoast SEO Eliminate Notifications Plugin

I’ve combined this code into a WordPress plugin available on GitHub, Yoast SEO eliminate Notifications WordPress Plugin.

Photo By

wwarby

Sal Ferrarello
Sal Ferrarello (@salcode)
Sal is a PHP developer with a focus on the WordPress platform. He is a conference speaker with a background including Piano Player, Radio DJ, Magician/Juggler, Beach Photographer, and High School Math Teacher. Sal can be found professionally at WebDevStudios, where he works as a senior backend engineer.

Share this post:

Share on TwitterShare on FacebookShare on LinkedInShare on EmailShare on Reddit

Filed Under: Programming Tagged With: WordPress, WordPress Filter, WordPress Plugin

Reader Interactions

Comments

  1. Robert says

    November 28, 2020 at 8:05 am

    Hey Sal,
    appreciate the effort but I seem to be late to the party: For me, this solution doesn’t work or more concretely, I don’t find wpseo_seen_about_version in any of the files, same with user_meta.
    Sigh… I really dislike those notifications a looot.

    Best regards and stay safe and healthy

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in