get_the_modified_time хук-фильтр . WP 2.0.0
Filters the localized time a post was last modified.
Использование
add_filter( 'get_the_modified_time', 'filter_function_name_7236', 10, 3 ); function filter_function_name_7236( $the_time, $format, $post ){ // filter... return $the_time; }
- $the_time(строка/число/false)
- The formatted time or false if no post is found.
- $format(строка)
- Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format.
- $post(WP_Post/null)
- WP_Post object or null if no post is found.
Список изменений
С версии 2.0.0 | Введена. |
С версии 4.6.0 | Added the $post parameter. |
Где вызывается хук
get_the_modified_time
wp-includes/general-template.php 2859
return apply_filters( 'get_the_modified_time', $the_time, $format, $post );