Method: Check and records coupon usage tentatively for short period of time so that counts validation is correct. Returns early if there is no limit defined for the coupon.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:501
Method: Generate query to calculate tentative usages for the coupon.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:571
Method: Check and records coupon usage tentatively for passed user aliases for short period of time so that counts validation is correct. Returns early if there is no limit per user for the coupon.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:598
Method: Helper method that updates all the post meta for a coupon based on it’s settings in the WC_Coupon class.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:236
Method: Increase usage count for current coupon.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:303
Method: Helper function to add a `_used_by` record to track coupons used by the user.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:328
Method: Decrease usage count for current coupon.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:359
Method: Method to read a coupon.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:112
Method: Updates a coupon in the database.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:159
Action Hook: When updating this object, to prevent infinite loops, use $wpdb to update data, since wp_update_post spawns more calls to the save_post action.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:192