get_the_time filter-hook . WP 1.5.0
Filters the time a post was written.
Usage
add_filter( 'get_the_time', 'filter_function_name_818', 10, 3 ); function filter_function_name_818( $the_time, $format, $post ){ // filter... return $the_time; }
- $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.
- $post(int/WP_Post)
- WP_Post object or ID.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
get_the_time
wp-includes/general-template.php 2670
return apply_filters( 'get_the_time', $the_time, $format, $post );