apply_filters( 'the_date', $the_date, $format, $before, $after )
引數
  • (string) $the_date The formatted date string.
    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_datethe_timethe_titlethe_sitesthe_category
相關方法
the_dateget_the_datethe_date_xmlthe_timethe_titlethe_terms
引入
0.71
棄用
-

the_date是一個模板標籤,顯示一個文章或頁面的釋出日期。它可以用來在網站的不同地方顯示日期,如在文章的後設資料或文章內容本身。

過濾文章的釋出日期,以便顯示。

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

常見問題

FAQs
檢視更多 >