Forked from amboutwe/yoast_seo_primary_category_disable.php
Created
February 17, 2018 21:03
-
-
Save KillerDesigner/85a90c63e7af02ecbf29dc1141eeb2e3 to your computer and use it in GitHub Desktop.
Disable Yoast SEO Primary Category Feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Disable Yoast SEO Primary Category Feature | |
* Credit: Yoast development team | |
* Last Tested: Jan 24 2017 using Yoast SEO 4.1 on WordPress 4.7.1 | |
*/ | |
add_filter( 'wpseo_primary_term_taxonomies', '__return_empty_array' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment