Support » Fixing WordPress » human friendly time for comments

  • I found this code from codex.wordpress to display human friendly time in comments:

    <?php echo human_time_diff( get_comment_time('U'), current_time('timestamp') ) . ' ago'; ?>

    How can I add this in functions.php ?

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘human friendly time for comments’ is closed to new replies.