Skip to content

Instantly share code, notes, and snippets.

@pramodjodhani
Created September 8, 2022 05:39
Show Gist options
  • Save pramodjodhani/936cefc5bf00e46ca080cd0d8fe394a5 to your computer and use it in GitHub Desktop.
Save pramodjodhani/936cefc5bf00e46ca080cd0d8fe394a5 to your computer and use it in GitHub Desktop.
Flux checkout - remove coupon form.
<?php
/**
* Flux checkout - remove coupon form.
*
* @return void
*/
function flux_remove_coupon_form() {
remove_action( 'woocommerce_review_order_after_cart_contents', array( 'Iconic_Flux_Sidebar', 'checkout_add_coupon_form' ), 9 );
}
add_action( 'init', 'flux_remove_coupon_form', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment