get_post_time хук-фильтр . WP 2.6.0
Filters the localized time a post was written.
Использование
add_filter( 'get_post_time', 'filter_function_name_3810', 10, 3 ); function filter_function_name_3810( $time, $format, $gmt ){ // filter... return $time; }
- $time(строка)
- The formatted time.
- $format(строка)
- Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format.
По умолчанию: 'U' - $gmt(true/false)
- Whether to retrieve the GMT time.
По умолчанию: false
Список изменений
С версии 2.6.0 | Введена. |
Где вызывается хук
get_post_time
wp-includes/general-template.php 2727
return apply_filters( 'get_post_time', $time, $format, $gmt );