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:
定義位置
相關勾子
get_the_modified_datethe_modified_timeget_post_modified_timethe_modified_dateget_the_time
相關方法
get_the_modified_timeget_the_modified_datethe_modified_timeget_post_modified_timeget_the_modified_authorthe_modified_date
引入
4.6.0
棄用
-

get_the_modified_time: 這個函式檢索當前文章最後一次被修改的時間,根據WordPress設定的格式化。

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

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'get_the_modified_time', $the_time, $format, $post );
return apply_filters( 'get_the_modified_time', $the_time, $format, $post );
return apply_filters( 'get_the_modified_time', $the_time, $format, $post );

常見問題

FAQs
檢視更多 >