woocommerce_analytics_update_coupon, $coupon_id, $order_id

woocommerce_analytics_update_coupon, $coupon_id, $order_id

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('woocommerce_analytics_update_coupon, $coupon_id, $order_id') is found 1 times:

  • /src/Admin/API/Reports/Coupons/DataStore.php line 446
    			 *
    			 * @param int $coupon_id Coupon ID.
    			 * @param int $order_id  Order ID.
    			 */
    			do_action( 'woocommerce_analytics_update_coupon', $coupon_id, $order_id );
    
    			// Sum the rows affected. Using REPLACE can affect 2 rows if the row already exists.
    			$num_updated += 2 === intval( $result ) ? 1 : intval( $result );
    		}
    
    		if ( ! empty( $existing_items ) ) {