language_attributes хук-фильтр . WP 2.5.0
Filters the language attributes for display in the 'html' tag.
Использование
add_filter( 'language_attributes', 'filter_function_name_9442', 10, 2 ); function filter_function_name_9442( $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. |
Где вызывается хук
language_attributes
wp-includes/general-template.php 4095
return apply_filters( 'language_attributes', $output, $doctype );