Advertisement
vapvarun

woocommerce_return_to_shop_redirect

Feb 23rd, 2023
997
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. add_filter( 'woocommerce_return_to_shop_redirect', 'bbloomer_change_return_shop_url' );
  2.  
  3. function bbloomer_change_return_shop_url() {
  4.    if(is_cart()){
  5.       return home_url('/courses/');
  6.    }
  7.    
  8. }
Tags: woocommerce
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement