函数原型
language_attributes( string $doctype = ‘html’ )
函数描述
Displays the language attributes for the ‘html’ tag.
是否弃用
未弃用
函数参数
-
$doctype
string
Optional - The type of HTML document. Accepts
'xhtml'or'html'. Default'html'.Default:
'html'
函数返回值
无
函数位置
File: wp-includes/general-template.php.
函数源码
function language_attributes( $doctype = 'html' ) {
echo get_language_attributes( $doctype );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 4.3.0 | Converted into a wrapper for get_language_attributes() . |
| 2.1.0 | Introduced. |

