wc_restore_locale()

Switch WooCommerce language to original.


Description Description


Source Source

File: includes/wc-core-functions.php

2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
function wc_restore_locale() {
    if ( function_exists( 'restore_previous_locale' ) ) {
        restore_previous_locale();
 
        // Remove filter.
        remove_filter( 'plugin_locale', 'get_locale' );
 
        // Init WC locale.
        WC()->load_plugin_textdomain();
    }
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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