Skip to content

trepmal.com

  • Home
  • Plugins
  • Github
  • Me on WP.org
  • Donate

Categories

  • WordPress Bits (149)
  • Uncategorized (11)
  • Scripts (5)
  • Tidbits (5)
  • Fun (3)

Tags

  • wordpress (30)
  • administration (16)
  • plugin (9)
  • free download (8)
  • functions.php (8)

Year

  • 2018 (8)
  • 2016 (2)
  • 2015 (4)
  • 2014 (19)
  • 2013 (11)

Filter Hook: post_date_column_time

Add Info to the Date Column

Need to add a little something to the date column on the posts/pages page? Maybe just make the date a little bolder. It’s easy

add_filter( 'post_date_column_time', 'customize_date_column', 10, 4 );
function customize_date_column( $h_time, $post, $column_name, $mode ) {
	//$post = post object
	//$column_name = date
	//$mode = 'list' or 'excerpt'
	
	return  ''.$h_time.'';
}
Posted on March 10, 2011March 1, 2012Categories WordPress BitsLeave a comment on Add Info to the Date Column
Proudly powered by WordPress