the_date filter-hook . WP 0.71
Filters the date a post was published for display.
Usage
add_filter( 'the_date', 'filter_function_name_8356', 10, 4 ); function filter_function_name_8356( $the_date, $format, $before, $after ){ // filter... return $the_date; }
- $the_date(string)
- The formatted date string.
- $format(string)
- PHP date format.
- $before(string)
- HTML output before the date.
- $after(string)
- HTML output after the date.
Changelog
Since 0.71 | Introduced. |
Where the hook is called
the_date
wp-includes/general-template.php 2502
$the_date = apply_filters( 'the_date', $the_date, $format, $before, $after );