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:
定義位置
相關勾子
get_the_modified_timeget_the_modified_datethe_modified_timeget_post_timethe_modified_date
相關方法
get_post_modified_timeget_the_modified_timeget_the_modified_datethe_modified_timeget_post_datetimeget_lastpostmodified
引入
2.8.0
棄用
-

get_post_modified_time是一個WordPress函式,用於檢索一個文章最後修改的日期和時間: 該函式接受一個格式引數,並返回指定格式的修改時間。

過濾文章最後被修改的本地化時間。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'get_post_modified_time', $time, $format, $gmt );
return apply_filters( 'get_post_modified_time', $time, $format, $gmt );
return apply_filters( 'get_post_modified_time', $time, $format, $gmt );

常見問題

FAQs
檢視更多 >