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