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 *********/ | |
/* Exclude One Taxonomy From Yoast SEO Sitemap | |
* Credit: Yoast KB https://kb.yoast.com/kb/how-to-customize-the-sitemap-index/ | |
* Last Tested: Apr 05 2018 using Yoast SEO 7.2 on WordPress 4.9.5 | |
********* | |
* Please note that changes will be applied upon next sitemap update. | |
* To manually refresh the sitemap, please disable and enable the sitemaps. | |
*/ |
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 *********/ | |
/* | |
* Yoast SEO return `?replytocom` variables | |
* Credit: Yoast development team | |
* Last Tested: Mar 23 2018 using Yoast SEO 7.1 on WordPress 4.9.4 | |
*/ | |
add_filter( 'wpseo_remove_reply_to_com', '__return_false' ); |
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 *********/ | |
/* Include empty terms in the sitemap | |
* Credit: Yoast team | |
* Last Tested: Mar 22 2019 using Yoast SEO 10.0.1 on WordPress 5.1.1 | |
*/ | |
add_filter('wpseo_sitemap_exclude_empty_terms', '__return_false'); |
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 *********/ | |
/* | |
* Yoast SEO Custom label for Business Phone 2 | |
* Credit: Yoast development team | |
* Last Tested: Apr 28 2017 using Yoast SEO Local 4.6 on WordPress 4.7.4 | |
*/ | |
add_filter( 'wpseo_local_contact_details', 'yoast_local_label_change_phone_2', 10, 1 ); |
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 jquery / JavaScript in Yoast SEO Local | |
* Credit: Bill Erickson https://www.billerickson.net/ | |
* Last Tested: Unknown | |
*/ | |
add_filter( 'wpseo_local_load_jquery', '__return_false' ); |
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 *********/ | |
/* Remove Date Meta Tags Output by Yoast SEO | |
* Credit: Yoast development team | |
* Last Tested: Apr 09 2019 using Yoast SEO 10.1.3 on WordPress 5.1.1 | |
* For Yoast SEO 14.0 or newer, please see https://yoast.com/help/date-appears-search-results/#h-managing-dates | |
*/ | |
add_action('wpseo_dc_'.'DC.date.issued', '__return_false'); // Premium versions 5.2 or older |
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' ); |
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 *********/ | |
/* Remove Yoast from front end for a single post or page | |
* Credit: Dodinas https://stackoverflow.com/questions/37845968/disable-wordpress-yoast-seo-on-single-page | |
* Last Tested: Nov 08 2019 using Yoast SEO 12.4 on WordPress 5.2.4 | |
* Note: For version 14+, please use the code here: https://developer.yoast.com/customization/yoast-seo/disabling-yoast-seo | |
********* | |
* DIFFERENT POST TYPES | |
* Post: Change 123456 to the post ID | |
* Page: Change is_single to is_page and 123456 to the page ID |
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 *********/ | |
/* Remove all JSON output by Yoast SEO | |
* Credit: Yoast development team | |
* Documentation: https://developer.yoast.com/schema-documentation/api/ | |
* Last Tested: Apr 16 2019 using Yoast SEO 11.0 on WordPress 5.1.1 | |
*/ | |
add_filter( 'wpseo_json_ld_output', '__return_false' ); |
OlderNewer