get_the_modified_date WordPress Filter Hook
The get_the_modified_date Wordpress hook is used to return the date when a post was last modified. This can be useful for displaying freshness on a blog or news site. The function takes one argument, which is the format of the date to be returned.
apply_filters( 'get_the_modified_date', string|int|false $the_time , string $format , WP_Post|null $post ) #
Filters the date a post was last modified.
Parameters
Source
Changelog
Version | Description |
---|---|
4.6.0 | Added the $post parameter. |
2.1.0 | Introduced. |