Yoast SEO Premium – Disable Automatic Redirects & Notices
// Prevent automatic redirects for post and taxonomy URL changes. add_filter( ‘Yoast\WP\SEO\post_redirect_slug_change’, ‘__return_true’ ); add_filter( ‘Yoast\WP\SEO\term_redirect_slug_change’, ‘__return_true’ ); // Suppress redirect notices for URL changes, deletion and restoration. add_filter( ‘Yoast\WP\SEO\enable_notification_post_slug_change’, ‘__return_false’ ); add_filter( ‘Yoast\WP\SEO\enable_notification_term_slug_change’, ‘__return_false’ ); add_filter( ‘Yoast\WP\SEO\enable_notification_post_trash’, ‘__return_false’ );…Continue reading