WordPress at a glance
filter is not described

language_attributes filter-hook . WP 2.5.0

Filters the language attributes for display in the html tag.


add_filter( 'language_attributes', 'filter_function_name_6446', 10, 2 );
function filter_function_name_6446( $output, $doctype ){
	// filter...

	return $output;
A space-separated list of language attributes.
The type of html document (xhtml|html).


  • Since 4.3.0 Added the $doctype parameter.

Where the hook is called

wp-includes/general-template.php 3621
return apply_filters( 'language_attributes', $output, $doctype );

Where the hook is used (in WP core)

Does not used.