WordPress开发者和主题制作者的搜索引擎



language_attributes ›

Since2.1.0
已弃用n/a
language_attributes ( $doctype = 'html' )
参数:
  • (string) $doctype Optional. The type of html document. Accepts 'xhtml' or 'html'. Default 'html'.
    Required: No
    默认: 'html'
定义在:
文档:
Change Log:
  • 4.3.0

Displays the language attributes for the html tag.

Builds up a set of html attributes containing the text direction and language information for the page.



源码

function language_attributes( $doctype = 'html' ) {
	echo get_language_attributes( $doctype );
}