WP_Locale_Switcher::filter_locale()
Filters the locale of the WordPress installation.
Метод класса: WP_Locale_Switcher{}
Хуков нет.
Возвращает
Строку
. The locale currently being switched to.
Использование
$WP_Locale_Switcher = new WP_Locale_Switcher(); $WP_Locale_Switcher->filter_locale( $locale );
- $locale(строка) (обязательный)
- The locale of the WordPress installation.
Список изменений
С версии 4.7.0 | Введена. |
Код WP_Locale_Switcher::filter_locale() WP Locale Switcher::filter locale WP 6.8
public function filter_locale( $locale ) { $switched_locale = $this->get_switched_locale(); if ( $switched_locale ) { return $switched_locale; } return $locale; }