locale WordPress Filter Hook

The WordPress locale hook is a great way to change the way your site is displayed to users in different countries. By using this hook, you can change the language, timezone, and currency displayed on your site. This is a great way to make your site more accessible to users in different parts of the world.

apply_filters( 'locale', string $locale ) #

Filters the locale ID of the WordPress installation.


Parameters

$locale

(string)The locale ID.


Top ↑

Source

File: wp-includes/l10n.php

View on Trac



Top ↑

Changelog

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