Support » Plugin: Yoast SEO » Disable Permalink Warning Notice

  • Resolved neotrope

    (@neotrope)


    Hi, folks
    does anybody know the filter hook to remove the two intrusive notices:

    a) on permalink settings page; “warning…” when changing permalinks

    b) on the delete post page; “warning…” when deleting a post.

    These are intrusive and not needed for our sites, and no option to disable.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support amboutwe

    (@amboutwe)

    Notifications can be hidden with the filters here: https://kb.yoast.com/kb/how-to-disable-automatic-redirects/

    Plugin Support Michael Tina

    (@mikes41720)

    No further response. Setting to closed.

    Note – none of the filters on the linked page affect posted issue of disabling the intrusive notice on the ‘permalinks’ update page; it’s necessary to resave permalinks regularly after major updates and AMP changes to clear transients fully.

    None of the filters noted on the linked page have any affect:

    add_filter('wpseo_enable_notification_post_trash', '__return_false');
    add_filter('wpseo_enable_notification_post_slug_change', '__return_false');
    add_filter('wpseo_enable_notification_term_delete','__return_false');
    add_filter('wpseo_enable_notification_term_slug_change','__return_false');

    The ‘notices’ should be a toggle on/off item; as it shouldn’t be necessary to have to open the raw code every time these new intrusions are added just to find the “wp_seo_enable_notification_wtf” term to use ?

    So, ‘logically’ one might presume the correct usage would be:

    add_filter('wpseo_enable_notification_permalink_change','__return_false');`

    or

    add_filter('wpseo_enable_notification_term_permalink_change','__return_false');`

    but neither of those work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Permalink Warning Notice’ is closed to new replies.