language_attributes()
Displays the language attributes for the ‘html’ tag.
Description
Builds up a set of HTML attributes containing the text direction and language information for the page.
Source
File: wp-includes/general-template.php
function language_attributes( $doctype = 'html' ) {
echo get_language_attributes( $doctype );
}
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Converted into a wrapper for get_language_attributes(). |
| 2.1.0 | |
| CP-2.0.0 Removed attributes as doctype is always 'html' now. | Introduced. CP-2.0.0 Removed attributes as doctype is always 'html' now. |