WPDev.one
Core Function
View Source on Trac ↗

get_language_attributes()

get_language_attributes( mixed $doctype = 'html' )

Gets the language attributes for the 'html' tag.

Parameters 0 required

Name / Type Description
$doctype
string

Optional. The type of HTML document. Accepts 'xhtml' or 'html'. Default 'html'.

Return Value

(string)
A space-separated list of language attributes.

Function Information

Since Version
4.3.0
Source File
wp-includes/general-template.php
Advertisement