language_attributes

過濾鉤子
apply_filters( 'language_attributes', $output, $doctype )
引數
  • (string) $output A space-separated list of language attributes.
    Required:
  • (string) $doctype The type of HTML document (xhtml|html).
    Required:
定義位置
相關勾子
nav_menu_link_attributespage_menu_link_attributesget_custom_logo_image_attributeswp_kses_uri_attributesnext_posts_link_attributes
相關方法
language_attributesget_language_attributespage_attributes_meta_boxthe_title_attributewp_kses_uri_attributeswp_sanitize_script_attributes
引入
4.3.0
棄用
-

language_attributes是一個WordPress的函式,為一個特定的HTML元素生成語言屬性。它輸出一個HTML屬性的字串,用於指定HTML文件的語言。

過濾“html”標記中顯示的語言屬性。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'language_attributes', $output, $doctype );
return apply_filters( 'language_attributes', $output, $doctype );
return apply_filters( 'language_attributes', $output, $doctype );

常見問題

FAQs
檢視更多 >