determine_locale WordPress Filter Hook

The determine_locale WordPress hook is used to determine the locale for a given user or site. This can be used to set the language for a specific user or site, or to automatically detect the user's locale based on their browser settings.

apply_filters( 'determine_locale', string $locale ) #

Filters the locale for the current request.


Parameters

$locale

(string)The locale.


Top ↑

Source

File: wp-includes/l10n.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.0.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.