plugin_locale WordPress Filter Hook

The plugin_locale Wordpress hook is used to filter the locale used for a specific plugin. This can be useful if a plugin is only available in certain languages, or if you want to use a different language for a specific plugin than the rest of your site.

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

Filters a plugin’s locale.


Parameters

$locale

(string)The plugin'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.