Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: 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
2672      /**
2673       * Filters the time a post was written for display.
2674       *
2675       * @since 0.71
2676       *
2677       * @param string $get_the_time The formatted time.
2678       * @param string $format       Format to use for retrieving the time the post
2679       *                             was written. Accepts 'G', 'U', or PHP date format.
2680       */
2681      echo apply_filters( 'the_time', get_the_time( $format ), $format );
2682 }
2683
2684 /**
2685  * Retrieves the time at which the post was written.
2686  *
2687  * @since 1.5.0
2688  *
2689  * @param string      $format Optional. Format to use for retrieving the time the post
2690  *                            was written. Accepts 'G', 'U', or PHP date format.