Skip to content

Instantly share code, notes, and snippets.

@vfontjr
Created April 24, 2020 17:09
Show Gist options
  • Save vfontjr/490afc1e9bc47bd78cb4c3a63cd1aaab to your computer and use it in GitHub Desktop.
Save vfontjr/490afc1e9bc47bd78cb4c3a63cd1aaab to your computer and use it in GitHub Desktop.
<?php
function vmf_post_date_column_time( $h_time, $post ) {
// If post is scheduled then add the time to the column output
if ($post-&gt;post_status == 'future') {
$h_time .= '<br>' . get_post_time( 'g:i a', false, $post );
}
// Return the column output
return $h_time;
}
add_filter ( 'post_date_column_time' , 'vmf_post_date_column_time' , 10 , 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment