In my WooCommerce web store, I would like to change the Return to shop URL to a custom URL. I tried using the code below in function.phpmy active topic file , but it does not work.
On my website I have five active languages that are controlled by the WPML commercial plugin. He also runs a script that ensures that visitors from these countries are redirected to their native language.
function wc_empty_cart_redirect_url() {
return 'http://pacsymposium.com/';
}
add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );
How can I get this work to get a link to the current language?
Thank.
source
share