Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_the_modified_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

This hook occurs 2 times in this file.

Line Code
1275  *
1276  * @param string $d Either 'G', 'U', or php date format defaults to the value specified in the time_format option.
1277  * @return string
1278  */
1279 function get_the_modified_time($d = '') {
1280      if ( '' == $d )
1281           $the_time = get_post_modified_time(get_option('time_format'));
1282      else
1283           $the_time = get_post_modified_time($d);
1284      return apply_filters('get_the_modified_time', $the_time, $d);
1285 }
1286
1287 /**
1288  * Retrieve the time at which the post was last modified.
1289  *
1290  * @since 2.0.0
1291  *
1292  * @param string $d Either 'G', 'U', or php date format.
1293  * @param bool $gmt Whether of not to return the gmt time.
 
Line Code
1296 function get_post_modified_time( $d = 'U', $gmt = false ) {
1297      global $post;
1298
1299      if ( $gmt )
1300           $time = $post->post_modified_gmt;
1301      else
1302           $time = $post->post_modified;
1303      $time = mysql2date($d, $time);
1304
1305      return apply_filters('get_the_modified_time', $time, $d, $gmt);
1306 }
1307
1308 /**
1309  * Display the weekday on which the post was written.
1310  *
1311  * @since 0.71
1312  * @uses $wp_locale
1313  * @uses $post
1314  */