the_modified_time filter-hook . WP 2.0.0
Filters the localized time a post was last modified, for display.
Usage
add_filter( 'the_modified_time', 'filter_function_name_2121', 10, 2 ); function filter_function_name_2121( $get_the_modified_time, $format ){ // filter... return $get_the_modified_time; }
- $get_the_modified_time(string|false)
- The formatted time or false if no post is found.
- $format(string)
- Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format.
Changelog
Since 2.0.0 | Introduced. |
Where the hook is called
the_modified_time
wp-includes/general-template.php 2821
echo apply_filters( 'the_modified_time', get_the_modified_time( $format ), $format );