Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
get_language_attributes() - 获取“html”标签的语言属性 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / get_language_attributes()

get_language_attributes( string $doctype = 'html' ): string

获取“html”标签的语言属性


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 3 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "86ad409f080d659a078c3330916425ef" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "600cd3eccb8f9714794f54ad9e655cd6" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

attributes

language


描述

构建一组HTML属性,其中包含页面的文本方向和语言信息。


参数

$doctypestring可选
HTML文档的类型。接受'xhtml'或'html'。默认'html'。

默认:'html'


返回

string 用空格分隔的语言属性列表。


钩子



源码

查看源码 官方文档


更新日志

版本描述
4.3.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194