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).


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.3.0Added the $doctype parameter.
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More