get_the_modified_date

過濾鉤子
apply_filters( 'get_the_modified_date', $the_time, $format, $post )
引數
  • (string|int|false) $the_time The formatted date or false if no post is found.
    Required:
  • (string) $format PHP date format.
    Required:
  • (WP_Post|null) $post WP_Post object or null if no post is found.
    Required:
定義位置
相關勾子
get_the_modified_timethe_modified_datethe_modified_timeget_post_modified_timethe_modified_author
相關方法
get_the_modified_dateget_the_modified_timethe_modified_dateget_the_modified_authorthe_modified_timeget_post_modified_time
引入
4.6.0
棄用
-

get_the_modified_date: 這個函式檢索當前文章最後修改的日期,根據WordPress的設定進行格式化。

過濾文章的最後修改日期。

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

常見問題

FAQs
檢視更多 >