the_time хук-фильтр . WP 0.71
Filters the time a post was written for display.
Использование
add_filter( 'the_time', 'filter_function_name_8842', 10, 2 ); function filter_function_name_8842( $get_the_time, $d ){ // filter... return $get_the_time; }
- $get_the_time(строка)
- The formatted time.
- $d(строка)
- The time format. Accepts 'G', 'U', or php date format.
Список изменений
С версии 0.71 | Введена. |
Где вызывается хук
the_time
wp-includes/general-template.php 2508
echo apply_filters( 'the_time', get_the_time( $d ), $d );