sanitize_locale_name
Filters a sanitized locale name string.
Использование
add_filter( 'sanitize_locale_name', 'wp_kama_sanitize_locale_name_filter', 10, 2 ); /** * Function for `sanitize_locale_name` filter-hook. * * @param string $sanitized The sanitized locale name. * @param string $locale_name The locale name before sanitization. * * @return string */ function wp_kama_sanitize_locale_name_filter( $sanitized, $locale_name ){ // filter... return $sanitized; }
- $sanitized(строка)
- The sanitized locale name.
- $locale_name(строка)
- The locale name before sanitization.
Список изменений
С версии 6.2.1 | Введена. |
Где вызывается хук
sanitize_locale_name
wp-includes/formatting.php 2459
return apply_filters( 'sanitize_locale_name', $sanitized, $locale_name );