WC_Coupon_Data_Store_CPT::update_usage_count_meta()
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: Increase or decrease the usage count for a coupon by 1.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:393
Method: Returns tentative usage count for coupon.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:418
Method: Get the number of uses for a coupon by user ID.
Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:434
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