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
Action Hook: We’re doing this the long way because `delete_post_meta( $id, $key, $value )` deletes.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:380
Method: Increase or decrease the usage count for a coupon by 1.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:393
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
Method: Deletes a coupon from the database.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:203
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