get_the_date хук-фильтр . WP 3.0.0
Filters the date a post was published.
Использование
add_filter( 'get_the_date', 'filter_function_name_2435', 10, 3 ); function filter_function_name_2435( $the_date, $format, $post ){ // filter... return $the_date; }
- $the_date(строка)
- The formatted date.
- $format(строка)
- PHP date format.
- $post(число/WP_Post)
- The post object or ID.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
get_the_date
wp-includes/general-template.php 2543
return apply_filters( 'get_the_date', $the_date, $format, $post );