Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: human_time_diff

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3754       * Filters the human readable difference between two timestamps.
3755       *
3756       * @since 4.0.0
3757       *
3758       * @param string $since The difference in human readable text.
3759       * @param int    $diff  The difference in seconds.
3760       * @param int    $from  Unix timestamp from which the difference begins.
3761       * @param int    $to    Unix timestamp to end the time difference.
3762       */
3763      return apply_filters( 'human_time_diff', $since, $diff, $from, $to );
3764 }
3765
3766 /**
3767  * Generates an excerpt from the content, if needed.
3768  *
3769  * Returns a maximum of 55 words with an ellipsis appended if necessary.
3770  *
3771  * The 55 word limit can be modified by plugins/themes using the {@see 'excerpt_length'} filter
3772  * The ' […]' string can be modified by plugins/themes using the {@see 'excerpt_more'} filter