plugin_locale filter-hookACF 5.7.10

This is a WooCommerce - plugin_locale hook. The plugin just uses it.

Filters a plugin's locale.

Usage

add_filter( 'plugin_locale', 'wp_kama_plugin_locale_filter', 10, 2 );

/**
 * Function for `plugin_locale` filter-hook.
 * 
 * @param  $determine_locale 
 * @param  $string           
 *
 * @return 
 */
function wp_kama_plugin_locale_filter( $determine_locale, $string ){

	// filter...
	return $determine_locale;
}
$determine_locale
-
$string
-

Changelog

Since 5.7.10 Introduced.

Where the hook is called

acf_load_textdomain()
plugin_locale
acf/includes/l10n.php 118
$locale = apply_filters( 'plugin_locale', acf_get_locale(), $domain );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.