plugins_update_check_locales, $locales

plugins_update_check_locales, $locales

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('plugins_update_check_locales, $locales') is found 1 times:

  • /includes/admin/helper/class-wc-helper-updater.php line 513
    		 * @since 4.5.0 The default value of the `$locales` parameter changed to include all locales.
    		 *
    		 * @param array $locales Plugin locales. Default is all available locales of the site.
    		 */
    		$locales = apply_filters( 'plugins_update_check_locales', $locales );
    		$locales = array_unique( $locales );
    
    		// No locales, the response will be empty, we can return now.
    		if ( empty( $locales ) ) {
    			return array();
    		}