astra_get_current_language_slug()
Getting site active language & compatible with other plugins.
Description
Return
(string)
Source
File: inc/extras.php
function astra_get_current_language_slug() { $lang = ''; if ( function_exists( 'pll_current_language' ) ) { $lang = pll_current_language(); } return apply_filters( 'astra_addon_site_current_language', $lang ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |