Filter: um_get_pickadate_locale

apply_filters( 'um_get_pickadate_locale', $locale, $suffix ) → {string}

Filters Ultimate Member Pickadate.JS locale.

Parameters:
Name Type Description
$locale string

Pickadate.JS locale.

$suffix string

Ultimate Member scripts suffix.

Since:
  • 2.8.0
Source:
Returns:

Pickadate.JS locale.

Type
string
Example

Change Ultimate Member Pickadate.JS locale.

function custom_um_get_pickadate_locale( $locale, $suffix ) {
    $locale = 'th_TH';
    return $locale;
}
add_filter( 'um_get_pickadate_locale', 'custom_um_get_pickadate_locale', 10, 2 );