Yoast\WP\SEO\Helpers
Language_Helper::get_language()
Returns The site language code without region (e.g. 'en' for 'en_US' or 'en_GB').
Метод класса: Language_Helper{}
Хуков нет.
Возвращает
Строку
. The site language code without region.
Использование
$Language_Helper = new Language_Helper(); $Language_Helper->get_language();
Код Language_Helper::get_language() Language Helper::get language Yoast 23.8
public function get_language() { return WPSEO_Language_Utils::get_language( \get_locale() ); }