Created
June 13, 2019 19:48
-
-
Save DarioBF/31de03ace1841dd802d23fd311bc98a9 to your computer and use it in GitHub Desktop.
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
/** Función que elimina todo rastro de fechas en los artículos */ | |
function bf_remove_dates() { | |
if( is_singular('libros') ){ | |
add_filter('the_time', '__return_false'); | |
add_filter('get_the_time', '__return_false'); | |
add_filter('the_modified_time', '__return_false'); | |
add_filter('get_the_modified_time', '__return_false'); | |
add_filter('the_date', '__return_false'); | |
add_filter('get_the_date', '__return_false'); | |
add_filter('the_modified_date', '__return_false'); | |
add_filter('get_the_modified_date', '__return_false'); | |
add_filter('get_comment_date', '__return_false'); | |
add_filter('get_comment_time', '__return_false'); | |
} | |
} | |
add_action('wp', 'bf_remove_dates'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment