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 );
}

Changelog

Changelog
Version Description
4.4.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.