language_attributes WordPress Filter Hook
The language_attributes hook is used to add language attributes to the tag of the site. This can be useful if you need to add specific language attributes for internationalization or localization.
apply_filters( 'language_attributes', string $output , string $doctype ) #
Filters the language attributes for display in the ‘html’ tag.
Parameters
- $output
(string)A space-separated list of language attributes.
- $doctype
(string)The type of HTML document (xhtml|html).
Source
Changelog
Version | Description |
---|---|
4.3.0 | Added the $doctype parameter. |
2.5.0 | Introduced. |