get_the_time хук-фильтр . WP 1.5.0
Filters the time a post was written.
Использование
add_filter( 'get_the_time', 'filter_function_name_234', 10, 3 ); function filter_function_name_234( $the_time, $format, $post ){ // filter... return $the_time; }
- $the_time(строка)
- The formatted time.
- $format(строка)
- Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format.
- $post(число/WP_Post)
- WP_Post object or ID.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
get_the_time
wp-includes/general-template.php 2670
return apply_filters( 'get_the_time', $the_time, $format, $post );