mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-01 11:52:25 +08:00
7 lines
265 B
Text
7 lines
265 B
Text
function action_woocommerce_removed_coupon( $coupon_code ) {
|
|
// Redirection...
|
|
wp_redirect( $url ); // Replace $url by your page URL.
|
|
exit;
|
|
};
|
|
// add the action
|
|
add_action( 'woocommerce_removed_coupon', 'action_woocommerce_removed_coupon', 10, 1 );
|