Change UM language locale. * function my_um_language_locale( $language_locale ) { * $language_locale = 'es_ES'; * return $language_locale; * } * add_filter( 'um_language_locale', 'my_um_language_locale' ); */ /** * Filters the path to the language file (*.mo). * * @param {string} $language_file Default path to the language file. * * @return {string} Language file path. * * @since 1.3.x * @depecated 2.8.5 Used WordPress native `load_plugin_textdomain()`. And can be replaced via WordPress native hook 'load_textdomain_mofile'. * @hook um_language_file * * @example