Skip to content

Instantly share code, notes, and snippets.

@mrfoxtalbot
Created October 22, 2018 11:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mrfoxtalbot/6e15323b00866301472929fda32a11c3 to your computer and use it in GitHub Desktop.
Remove post date
function mrfx_remove_post_dates() {
add_filter('the_date', '__return_false');
add_filter('the_time', '__return_false');
add_filter('the_modified_date', '__return_false');
add_filter('get_the_date', '__return_false');
add_filter('get_the_time', '__return_false');
add_filter('get_the_modified_date', '__return_false');
}
add_action('loop_start', 'mrfx_remove_post_dates');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment