theme_locale WordPress Filter Hook

The theme_locale Wordpress hook is used to change the language setting for a WordPress site. This can be useful if you want to create a multilingual site or if you want to change the language of your site based on the user's location.

apply_filters( 'theme_locale', string $locale, string $domain ) #

Filters a theme’s locale.


Parameters

$locale

(string)The theme's current locale.

$domain

(string)Text domain. Unique identifier for retrieving translated strings.


Top ↑

Source

File: wp-includes/l10n.php

View on Trac



Top ↑

Changelog

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