Last active
October 5, 2020 08:39
-
-
Save amboutwe/e5b83cd990b5c1bc4015c20f5e3cd754 to your computer and use it in GitHub Desktop.
Remove Date Meta Tags Output by Yoast SEO
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 | |
add_filter( 'wpseo_og_article_published_time', '__return_false' ); // Versions 13.5 or older | |
add_filter( 'wpseo_og_article_modified_time', '__return_false' ); // Versions 13.5 or older | |
add_filter( 'wpseo_og_og_updated_time', '__return_false' ); // Versions 13.5 or older |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the solution here