get_the_time

过滤钩子


apply_filters( 'get_the_time', $the_time, $format, $post )
参数
  • (string|int)
    $the_time
    Formatted date string or Unix timestamp if `$format` is ‘U’ or ‘G’.
    Required:
  • (string)
    $format
    Format to use for retrieving the time the post
    was written. Accepts ‘G’, ‘U’, or PHP date format.
    Required:
  • (WP_Post)
    $post
    Post object.
    Required:
定义位置
  • wp-includes/general-template.php
    , line 2708
引入
1.5.0
弃用

Filters the time a post was written.

return apply_filters( 'get_the_time', $the_time, $format, $post );