wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



language_attributes › WordPress Function

Seit2.1.0
Veraltetn/v
language_attributes ( $doctype = 'html' )
Parameter:
  • (string) $doctype Optional. The type of HTML document. Accepts 'xhtml' or 'html'. Default 'html'.
    Erforderlich: Nein
    Standard: 'html'
Definiert in:
Codex:
Changelog:
  • 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.


Quellcode

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