Last active
June 28, 2020 19:34
-
-
Save zerobugs-oficial/713b9e64df8886560c49314d3eb574f5 to your computer and use it in GitHub Desktop.
Com esse trecho de código você poderá muda o link do botão Retornar para a Loja e enviar os usuários que acessarem o carrinho vazio da sua loja WooCommerce para um link diferente do padrão, como a página inicial por exemplo.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function zb_change_return_shop_url() { | |
return home_url() . "/sua-pagina-personalizada"; | |
} | |
add_filter( 'woocommerce_return_to_shop_redirect', 'zb_change_return_shop_url' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment