Cách sử dụng plugin polylang vào theme

administrator

Administrator
Nhân viên
9 Tháng tám 2021
87
0
6

pll_current_language​

Returns the current language

Usage:

Mã:
pll_current_language($value);

  • ‘$value’ => (optional) either ‘name’ or ‘locale’ or ‘slug’, defaults to ‘slug’
returns either the full name, or the WordPress locale (just as the WordPress core function ‘get_locale’ or the slug ( 2-letters code) of the current language.
Link tham khảo: