Function Reference/language attributes
Description
Display the language attributes for the html tag.
Builds up a set of html attributes containing the text direction and language information for the page.
Usage
<?php language_attributes( $doctype ) ?>
Parameters
- $doctype
- (string) (optional) The type of html document 'xhtml' or 'html'.
- Default: 'html'
Return Values
- (void)
- This function does not return a value.
Examples
Notes
- Uses: get_bloginfo() May call to get 'text_direction' or 'language'.
- Uses: apply_filters() Calls 'language_attributes' on output just before sending it to browser.
Change Log
Since: 2.1.0
Source File
language_attributes() is located in wp-includes/general-template.php.
Related