WordPress at a glance
function is not described

language_attributes() WP 2.1.0

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.

  • Since 4.3.0 Converted into a wrapper for get_language_attributes().

No Hooks.

Return

Nothing (null).

Usage

language_attributes( $doctype );
$doctype(string)
The type of html document. Accepts 'xhtml' or 'html'.
Default: 'html'

Code of language attributes: wp-includes/general-template.php VER 5.0.3

<?php
function language_attributes( $doctype = 'html' ) {
	echo get_language_attributes( $doctype );
}