Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Add timestamps to post dates.
Plugin Name: Posted At
Plugin URI:
Description: Add timestamps to post dates.
Author: Benedict Eastaugh
Version: 1.0
Author URI:
function add_times_to_post_dates($date, $d, $post) {
if ($post->ID > 0)
$date = sprintf(__('%s at %s', 'tarski'),
get_post_time(get_option('time_format'), false, $post));
return $date;
add_filter('get_the_time', 'add_times_to_post_dates', 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment