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

Filters the time a post was written.

Parameters Parameters


(string) The formatted time.


(string) Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format.


(int|WP_Post) WP_Post object or ID.

Top ↑

Source Source

File: wp-includes/general-template.php

View on Trac

Top ↑

Changelog Changelog

Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.