Skip to content

Instantly share code, notes, and snippets.

View AdsonCicilioti's full-sized avatar
🎯
Focusing on JS World

Adson Cicilioti AdsonCicilioti

🎯
Focusing on JS World
  • Brazil
View GitHub Profile
add_action( 'woocommerce_before_cart', 'apply_matched_coupons' );
function apply_matched_coupons() {
global $woocommerce;
$get1 = 'getonech'; // your coupon code here
$get2 = 'gettwoch'; // your coupon code here
$get3 = 'getthreech'; // your coupon code here
$get4 = 'getfourch'; // your coupon code here
$get5 = 'getfivech'; // your coupon code here