Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** 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');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement