language_attributes хук-фильтрWP 2.5.0

Filters the language attributes for display in the 'html' tag.

Использование

add_filter( 'language_attributes', 'wp_kama_language_attributes_filter', 10, 2 );

/**
 * Function for `language_attributes` filter-hook.
 * 
 * @param string $output  A space-separated list of language attributes.
 * @param string $doctype The type of HTML document (xhtml|html).
 *
 * @return string
 */
function wp_kama_language_attributes_filter( $output, $doctype ){

	// filter...
	return $output;
}
$output(строка)
A space-separated list of language attributes.
$doctype(строка)
The type of HTML document (xhtml|html).

Список изменений

С версии 2.5.0 Введена.
С версии 4.3.0 Added the $doctype parameter.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.