month_link

過濾鉤子
apply_filters( 'month_link', $monthlink, $year, $month )
引數
  • (string) $monthlink Permalink for the month archive.
    Required:
  • (int) $year Year for the archive.
    Required:
  • (int) $month The month for the archive.
    Required:
定義位置
相關勾子
post_linkcomment_linkauthor_linktag_linkrespond_link
相關方法
get_month_linkcomment_linkcomments_linkget_linkget_linksedit_link
引入
1.5.0
棄用
-

month_link是一個過濾器鉤子,它允許開發者改變WordPress中每月存檔檢視的連結URL。

過濾月份存檔固定連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'month_link', $monthlink, $year, $month );
return apply_filters( 'month_link', $monthlink, $year, $month );
return apply_filters( 'month_link', $monthlink, $year, $month );

常見問題

FAQs
檢視更多 >