acf/get_locale
Filters the determined local.
Usage
add_filter( 'acf/get_locale', 'wp_kama_acf_get_locale_filter' );
/**
* Function for `acf/get_locale` filter-hook.
*
* @param string $locale The local.
*
* @return string
*/
function wp_kama_acf_get_locale_filter( $locale ){
// filter...
return $locale;
}
- $locale(string)
- The local.
Changelog
| Since 5.7.10 | Introduced. |
Where the hook is called
acf/get_locale
acf/includes/l10n.php 93
return apply_filters( 'acf/get_locale', $locale );