plugins_update_check_locales WordPress Filter Hook
The plugins_update_check_locales Wordpress hook is used to check for updates to installed plugins, and to update the locales of those plugins if necessary. This hook is called by the plugin update checker when it is run, and is used to ensure that the locales of installed plugins are up to date.
apply_filters( 'plugins_update_check_locales', array $locales ) #
Filters the locales requested for plugin translations.
Parameters
- $locales
(array)Plugin locales. Default is all available locales of the site.
Source
File: wp-includes/update.php
Changelog
Version | Description |
---|---|
4.5.0 | The default value of the $locales parameter changed to include all locales. |
3.7.0 | Introduced. |