wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_post_time › WordPress过滤钩子

Since2.6.0
已弃用n/a
› apply_filters( 'get_post_time', $time, $format, $gmt )
参数: (3)
  • () time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
    Required: Yes
  • () format Format to use for retrieving the date of the post. Accepts 'G', 'U', or PHP date format.
    Required: Yes
  • () gmt Whether to retrieve the GMT time.
    Required: Yes
查看:
  • get_post_time()
定义在:
文档:

Filters the localized time of the post.

The filtered value should match the type and values that `$format` produces, for example, an integer for 'U' or 'G', or a numeric string from '0' to '6' for 'w'.




源码

return apply_filters( 'get_post_time', $time, $format, $gmt );