Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Display time in how long ago format (WordPress)
human_time_diff( $from, $to );
echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment