get_post_time
apply_filters( ‘get_post_time’, string $time , string $format , bool $gmt )
过滤器::过滤文章的本地化时间。
Filter Hook: Filters the localized time a post was written.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$time | (string) | 格式化时间。 |
$format | (string) | 用于检索邮件写入时间的格式。接受“G”、“U”或PHP日期格式。默认“U”。 |
$gmt | (bool) | 是否检索GMT时间。默认为false。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.6.0 | wp-includes/general-template.php:2605 | 1 | 0 |
get_post_time 为WP2原创文章,链接:https://www.wp2.cn/hook/get_post_time-2/