get_the_date filter-hook . WP 3.0.0
Filters the date a post was published.
Usage
add_filter( 'get_the_date', 'filter_function_name_5090', 10, 3 ); function filter_function_name_5090( $the_date, $format, $post ){ // filter... return $the_date; }
- $the_date(string)
- The formatted date.
- $format(string)
- PHP date format.
- $post(int/WP_Post)
- The post object or ID.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
get_the_date
wp-includes/general-template.php 2543
return apply_filters( 'get_the_date', $the_date, $format, $post );