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.
$doctypestringoptional
'xhtml' or 'html'. Default 'html'.Default:'html'
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. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/language_attributes