wordpress / latest / hooks / get_the_modified_date.html

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

$the_time string|int|false
The formatted date or false if no post is found.
$format string
PHP date format.
$post WP_Post|null
WP_Post object or null if no post is found.

Source

File: wp-includes/general-template.php. View all references

return apply_filters( 'get_the_modified_date', $the_time, $format, $post );

Used By

Used By Description

Changelog

Version Description
4.6.0 Added the $post parameter.
2.1.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_the_modified_date