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

do_action('woocommerce_applied_coupon') is found 2 times:

  • /includes/class-wc-cart.php line 1834
    1830
    1831
    1832
    1833
    1834
    1835
    1836
    1837
    1838
    1839
    1840
        }
     
        $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 1075
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
         * @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: