Disable WP SEO from altering permalinks (stopwords)
-
I just thought I’d share the code for this for anyone looking to do it. I was surprised to learn that the plugin altered post slugs with no option to disable this, which is (as far as I can tell) not documented anywhere. I may have missed this somewhere though.
Here’s the code to disable this functionality. You’ll need to drop it in a custom plugin.
add_action( 'plugins_loaded', 'my_fix_yoast_seo' ); function my_fix_yoast_seo() { global $wpseo_admin; if ( is_admin() ) remove_filter( 'name_save_pre', array( $wpseo_admin, 'remove_stopwords_from_slug' ), 0 ); }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Disable WP SEO from altering permalinks (stopwords)’ is closed to new replies.