woocommerce_order_applied_coupon

woocommerce_order_applied_coupon

Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_order_applied_coupon') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 1282
    		 * @param  WC_Order  $order  The current order object.
    		 *
    		 * @since 7.3
    		 */
    		do_action( 'woocommerce_order_applied_coupon', $coupon, $this );
    
    		$this->set_coupon_discount_amounts( $discounts );
    		$this->save();
    
    		// Recalculate totals and taxes.
    		$this->recalculate_coupons();