Fixed clear cart after payment for block-based themes(Twenty Twenty-Two).
This commit is contained in:
parent
3eeb1f239f
commit
1be5e81860
|
@ -192,7 +192,7 @@ function wc_clear_cart_after_payment() {
|
|||
}
|
||||
}
|
||||
}
|
||||
add_action( 'get_header', 'wc_clear_cart_after_payment' );
|
||||
add_action( 'template_redirect', 'wc_clear_cart_after_payment', 20 );
|
||||
|
||||
/**
|
||||
* Get the subtotal.
|
||||
|
|
Loading…
Reference in New Issue