language_attributes filter-hook . WP 2.5.0
Filters the language attributes for display in the 'html' tag.
Usage
add_filter( 'language_attributes', 'filter_function_name_7322', 10, 2 ); function filter_function_name_7322( $output, $doctype ){ // filter... return $output; }
- $output(string)
- A space-separated list of language attributes.
- $doctype(string)
- The type of HTML document (xhtml|html).
Changelog
Since 2.5.0 | Introduced. |
Since 4.3.0 | Added the $doctype parameter. |
Where the hook is called
language_attributes
wp-includes/general-template.php 4095
return apply_filters( 'language_attributes', $output, $doctype );