woocommerce_increase_coupon_usage_count

woocommerce_increase_coupon_usage_count

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_increase_coupon_usage_count') is found 1 times:

  • /includes/data-stores/class-wc-coupon-data-store-cpt.php line 343
    			$this->add_coupon_used_by( $coupon, $used_by, $coupon_held_key_for_user );
    			$coupon->set_used_by( (array) get_post_meta( $coupon->get_id(), '_used_by' ) );
    		}
    
    		do_action( 'woocommerce_increase_coupon_usage_count', $coupon, $new_count, $used_by );
    
    		return $new_count;
    	}
    
    	/**
    	 * Helper function to add a `_used_by` record to track coupons used by the user.