get_post_modified_time

过滤钩子


apply_filters( 'get_post_modified_time', $time, $format, $gmt )
参数
  • (string|int)
    $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 modified.
    Accepts ‘G’, ‘U’, or PHP date format. Default ‘U’.
    Required:
  • (bool)
    $gmt
    Whether to retrieve the GMT time. Default false.
    Required:
定义位置
  • wp-includes/general-template.php
    , line 2954
引入
2.8.0
弃用

Filters the localized time a post was last modified.

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