wpseek.com
A WordPress-centric search engine for devs and theme authors



language_attributes › WordPress Function

Since2.1.0
Deprecatedn/a
language_attributes ( $doctype = 'html' )
Parameters:
  • (string) $doctype Optional. The type of HTML document. Accepts 'xhtml' or 'html'. Default 'html'.
    Required: No
    Default: 'html'
Defined at:
Codex:
Change Log:
  • 4.3.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.


Source

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