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.8.7.0

do_action('woocommerce_applied_coupon') is found 2 times:

  • /includes/class-wc-cart.php line 1821
    		}
    
    		$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 1010
    		 * @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.
    	 *
    	 * @throws RouteException Exception if invalid data is detected.
    

See this hook used in plugins: