W3cubDocs

/WordPress

apply_filters( 'get_the_time', string $the_time, string $format, int|WP_Post $post )

Filters the time a post was written.

Parameters

$the_time

(string) The formatted time.

$format

(string) Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format value specified in 'time_format' option. Default empty.

$post

(int|WP_Post) WP_Post object or ID.

Source

File: wp-includes/general-template.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.

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