W3cubDocs

/WordPress

apply_filters( 'language_attributes', string $output, string $doctype )

Filters the language attributes for display in the html tag.

Description

Parameters

$output

(string) A space-separated list of language attributes.

$doctype

(string) The type of html document (xhtml|html).

Source

File: wp-includes/general-template.php

View on Trac

Changelog

Version Description
4.3.0 Added the $doctype parameter.
2.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/language_attributes