Today’s we are gonna talk about how you can get WooCommerce default language while using the WPML module. Talking about WPML, it is a popular module that is used for multi-languages. Our focus here is on how to get the default language.
Below is an example:
$wpml_options = get_option( 'icl_sitepress_settings' );
$default_lang = $wpml_options['default_language'];
$default_lang = $wpml_options['default_language'];