W3cubDocs

/WordPress

apply_filters( ‘get_the_modified_time’, string|int|false $the_time, string $format, WP_Post|null $post )

Filters the localized time a post was last modified.

Parameters

$the_timestring|int|false
The formatted time or false if no post is found.
$formatstring
Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format.
$postWP_Post|null
WP_Post object or null if no post is found.

Source

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

Changelog

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

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