apply_filters( 'um_language_locale', $language_locale ) → {string}
Filters the language locale before loading textdomain.
Parameters:
Name | Type | Description |
---|---|---|
$language_locale |
string | Current language locale. |
- Since:
- 1.3.x
- Source:
Returns:
Maybe changed language locale.
- Type
- string
Example
function my_um_language_locale( $language_locale ) {
$language_locale = 'es_ES';
return $language_locale;
}
add_filter( 'um_language_locale', 'my_um_language_locale' );