get_the_modified_time

过滤钩子


apply_filters( 'get_the_modified_time', $the_time, $format, $post )
参数
  • (string|int|false)
    $the_time
    The formatted time or false if no post is found.
    Required:
  • (string)
    $format
    Format to use for retrieving the time the post
    was modified. Accepts ‘G’, ‘U’, or PHP date format.
    Required:
  • (WP_Post|null)
    $post
    WP_Post object or null if no post is found.
    Required:
定义位置
  • wp-includes/general-template.php
    , line 2897
引入
4.6.0
弃用

Filters the localized time a post was last modified.

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