human_time_diff хук-фильтр . WP 4.0.0
Filters the human readable difference between two timestamps.
Использование
add_filter( 'human_time_diff', 'filter_function_name_6178', 10, 4 ); function filter_function_name_6178( $since, $diff, $from, $to ){ // filter... return $since; }
- $since(строка)
- The difference in human readable text.
- $diff(число)
- The difference in seconds.
- $from(число)
- Unix timestamp from which the difference begins.
- $to(число)
- Unix timestamp to end the time difference.
Список изменений
С версии 4.0.0 | Введена. |
Где вызывается хук
human_time_diff
wp-includes/formatting.php 3793
return apply_filters( 'human_time_diff', $since, $diff, $from, $to );