woocommerce_applied_coupon

woocommerce_applied_coupon

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

do_action('woocommerce_applied_coupon') is found 2 times:

  • /includes/class-wc-cart.php line 1905
    		}
    
    		$the_coupon->add_coupon_message( WC_Coupon::WC_COUPON_SUCCESS );
    
    		do_action( 'woocommerce_applied_coupon', $coupon_code );
    
    		return true;
    	}
    
    	/**
    	 * Get array of applied coupon objects and codes.
    
  • /src/StoreApi/Utilities/CartController.php line 1076
    		 * @internal Matches action name in WooCommerce core.
    		 *
    		 * @param string $coupon_code The coupon code that was applied.
    		 */
    		do_action( 'woocommerce_applied_coupon', $coupon_code );
    	}
    
    	/**
    	 * Validates an existing cart coupon and returns any errors.
    	 *
    	 * @param \WC_Coupon $coupon Coupon object applied to the cart.
    

See this hook used in plugins: