apply_filters( 'language_attributes', string $output, string $doctype )
- Since
- 2.5.0, 4.3.0
Filters the language attributes for display in the 'html' tag.
Compatibility
- WordPress
- since 4.3.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$outputstring- A space-separated list of language attributes.
$doctypestring- The type of HTML document (xhtml|html).
Where this hook fires · 1
wp-includes/general-template.php:4403get_language_attributes()
Source code
* @since 2.5.0 * @since 4.3.0 Added the `$doctype` parameter. * * @param string $output A space-separated list of language attributes. * @param string $doctype The type of HTML document (xhtml|html). */ return apply_filters( 'language_attributes', $output, $doctype );} /** * Displays the language attributes for the 'html' tag. * * Builds up a set of HTML attributes containing the text direction and languageChangelog
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.3.0
Added the
$doctype parameter.from the docblock2.5.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.