the_date хук-фильтр . WP 0.71
Filters the date a post was published for display.
Использование
add_filter( 'the_date', 'filter_function_name_6865', 10, 4 ); function filter_function_name_6865( $the_date, $format, $before, $after ){ // filter... return $the_date; }
- $the_date(строка)
- The formatted date string.
- $format(строка)
- PHP date format.
- $before(строка)
- HTML output before the date.
- $after(строка)
- HTML output after the date.
Список изменений
С версии 0.71 | Введена. |
Где вызывается хук
the_date
wp-includes/general-template.php 2502
$the_date = apply_filters( 'the_date', $the_date, $format, $before, $after );