um_language_locale

Hook type

Filter

Description

Change UM language locale

Parameters

$locale

(string) UM language locale

Usage

add_filter( 'um_language_locale', 'function_name', 10, 1 );

Examples

<?php
add_filter( 'um_language_locale', 'my_language_locale', 10, 1 );
function my_language_locale( $locale ) {
    // your code here
return $locale;
}
?>

Change Log

Since: 2.0

Source

um_language_locale is located in includes/class-init.php::line 241