the_modified_time

Display the time at which the post was last modified.

Description

the_modified_time( (string) $d = '' ); 

Parameters (1)

0. $d — Optional. (string) => ''
Either G,, U, or php date format defaults to the value specified in the time_format option.

Usage

  1. if ( !function_exists( 'the_modified_time' ) ) { 
  2. require_once ABSPATH . WPINC . '/general-template.php'; 
  3.  
  4. // Optional Either 'G', 'U', or php date format defaults to the value specified in the time_format option. 
  5. $d = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = the_modified_time($d); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/general-template.php  
  1. function the_modified_time($d = '') { 
  2. /** 
  3. * Filters the localized time a post was last modified, for display. 
  4. * @since 2.0.0 
  5. * @param string $get_the_modified_time The formatted time. 
  6. * @param string $d The time format. Accepts 'G', 'U',  
  7. * or php date format. Defaults to value 
  8. * specified in 'time_format' option. 
  9. */