the_weekday_date

過濾鉤子
apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after )
引數
  • (string) $the_weekday_date The weekday on which the post was written.
    Required:
  • (string) $before The HTML to output before the date.
    Required:
  • (string) $after The HTML to output after the date.
    Required:
定義位置
相關勾子
the_weekdaythe_datethe_modified_dateget_the_dateget_feed_build_date
相關方法
the_weekday_datethe_weekdaythe_datethe_modified_dateget_feed_build_datethe_date_xml
引入
0.71
棄用
-

the_weekday_date – 這是一個WordPress模板標籤,用於顯示一個文章、頁面或自定義文章型別的星期和日期。它需要一個可選的格式引數,用來格式化顯示的日期。預設情況下,日期格式是由WordPress管理區的”日期格式”設定決定的。

過濾寫文章的本地化日期,以便顯示。

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

常見問題

FAQs
檢視更多 >