pll_current_language
Returns the current languageUsage: |
Mã:
pll_current_language($value);
- ‘$value’ => (optional) either ‘name’ or ‘locale’ or ‘slug’, defaults to ‘slug’
Link tham khảo:
Function reference
IMPORTANT: when using one or more of these function, you *must* check for the its existence before using it, otherwise your site will badly break with a fatal error at next Polylang update (as Word…
polylang.wordpress.com