the_modified_time хук-фильтр . WP 2.0.0
Filters the localized time a post was last modified, for display.
Использование
add_filter( 'the_modified_time', 'filter_function_name_9055', 10, 2 ); function filter_function_name_9055( $get_the_modified_time, $format ){ // filter... return $get_the_modified_time; }
- $get_the_modified_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.
Список изменений
С версии 2.0.0 | Введена. |
Где вызывается хук
the_modified_time
wp-includes/general-template.php 2821
echo apply_filters( 'the_modified_time', get_the_modified_time( $format ), $format );