wc_restore_locale()
Switch WooCommerce language to original.
No Hooks.
Return
null
. Nothing.
Usage
wc_restore_locale();
Changelog
Since 3.1.0 | Introduced. |
wc_restore_locale() wc restore locale code WC 7.3.0
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(); } }