Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_the_time

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
2848       * Filters the time of the post.
2849       *
2850       * @since 1.5.0
2851       *
2852       * @param string|int $the_time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
2853       * @param string     $format   Format to use for retrieving the time the post
2854       *                             was written. Accepts 'G', 'U', or PHP date format.
2855       * @param WP_Post    $post     Post object.
2856       */
2857      return apply_filters( 'get_the_time', $the_time, $format, $post );
2858 }
2859
2860 /**
2861  * Retrieves the localized time of the post.
2862  *
2863  * @since 2.0.0
2864  *
2865  * @param string      $format    Optional. Format to use for retrieving the time the post
2866  *                               was written. Accepts 'G', 'U', or PHP date format. Default 'U'.