wc_restore_locale()
Switch WooCommerce language to original.
Description Description
Source Source
File: includes/wc-core-functions.php
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(); } }
Changelog Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |