Skip to content

Instantly share code, notes, and snippets.

@kovshenin
Created June 19, 2012 13:41
Show Gist options
  • Save kovshenin/2954263 to your computer and use it in GitHub Desktop.
Save kovshenin/2954263 to your computer and use it in GitHub Desktop.
<?php
add_action( 'init', 'my_remove_post_dates' );
function my_remove_post_dates() {
if ( ! in_array( get_current_blog_id(), array( 21, 22 ) ) )
return;
add_filter( 'the_date', '__return_null', 99 );
add_filter( 'the_time', '__return_null', 99 );
add_filter( 'the_modified_date', '__return_null', 99 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment