the_modified_date

過濾鉤子
apply_filters( 'the_modified_date', $the_modified_date, $format, $before, $after )
引數
  • (string|false) $the_modified_date The last modified date or false if no post is found.
    Required:
  • (string) $format PHP date format.
    Required:
  • (string) $before HTML output before the date.
    Required:
  • (string) $after HTML output after the date.
    Required:
定義位置
相關勾子
get_the_modified_datethe_modified_timethe_modified_authorget_the_modified_timethe_weekday_date
相關方法
the_modified_dateget_the_modified_datethe_modified_timethe_modified_authorget_the_modified_timeget_the_modified_author
引入
2.1.0
棄用
-

the_modified_date – 這是一個WordPress函式,顯示一個文章最後被修改的日期。the_modified_date函式生成一個文字字串,包含一個文章最後被修改的日期,可以用來在文章的頁面或自定義模板中顯示這個資訊。這個資訊對於顯示文章的修改時間,以及跟蹤文章的歷史是很有用的。

過濾顯示一個文章最後修改的日期。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$the_modified_date = apply_filters( 'the_modified_date', $the_modified_date, $format, $before, $after );
$the_modified_date = apply_filters( 'the_modified_date', $the_modified_date, $format, $before, $after );
$the_modified_date = apply_filters( 'the_modified_date', $the_modified_date, $format, $before, $after );

常見問題

FAQs
檢視更多 >