get_post_time filter-hook . WP 2.6.0
Filters the localized time a post was written.
Usage
add_filter( 'get_post_time', 'filter_function_name_2862', 10, 3 ); function filter_function_name_2862( $time, $format, $gmt ){ // filter... return $time; }
- $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.
Default: 'U' - $gmt(true/false)
- Whether to retrieve the GMT time.
Default: false
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
get_post_time
wp-includes/general-template.php 2727
return apply_filters( 'get_post_time', $time, $format, $gmt );