apply_filters( 'wp_title', $title, $sep, $seplocation )
引數
  • (string) $title Page title.
    Required:
  • (string) $sep Title separator.
    Required:
  • (string) $seplocation Location of the separator ('left' or 'right').
    Required:
定義位置
相關勾子
wp_title_rsswp_title_partsthe_titlewidget_titlewp_mail
相關方法
wp_titlewp_title_rsswp_styleswp_diethe_titlewp_get_sites
引入
2.0.0
棄用
-

wp_title:這是一個 WordPress 函式,用於生成頁面標題。它從資料庫中檢索頁面資訊,並使用頁面資訊生成標題: 該函式將在頁面載入時自動呼叫,並

過濾頁面標題的文字。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$title = apply_filters( 'wp_title', $title, $sep, $seplocation );
$title = apply_filters( 'wp_title', $title, $sep, $seplocation );
$title = apply_filters( 'wp_title', $title, $sep, $seplocation );

常見問題

FAQs
檢視更多 >