get_the_modified_date filter-hook . WP 2.1.0
Filters the date a post was last modified.
Usage
add_filter( 'get_the_modified_date', 'filter_function_name_1765', 10, 3 ); function filter_function_name_1765( $the_time, $format, $post ){ // filter... return $the_time; }
- $the_time(string/int/false)
- The formatted date or false if no post is found.
- $format(string)
- PHP date format.
- $post(WP_Post/null)
- WP_Post object or null if no post is found.
Changelog
Since 2.1.0 | Introduced. |
Since 4.6.0 | Added the $post parameter. |
Where the hook is called
get_the_modified_date
wp-includes/general-template.php 2612
return apply_filters( 'get_the_modified_date', $the_time, $format, $post );