WP_Locale_Switcher::init() public WP 4.7.0
Initializes the locale switcher.
Hooks into the 'locale' filter to change the locale on the fly.
{} Это метод класса: WP_Locale_Switcher{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WP_Locale_Switcher = new WP_Locale_Switcher(); $WP_Locale_Switcher->init();
Список изменений
С версии 4.7.0 | Введена. |
Код WP_Locale_Switcher::init() WP Locale Switcher::init WP 5.6.2
public function init() {
add_filter( 'locale', array( $this, 'filter_locale' ) );
}