WC_Coupon_Data_Store_CPT::add_coupon_used_by() – Helper function to add a `_used_by` record to track coupons used by the user.
WC_Coupon_Data_Store_CPT::check_and_hold_coupon_for_user() – 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.
WC_Coupon_Data_Store_CPT::check_and_hold_coupon() – 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.
WC_Coupon_Data_Store_CPT::get_tentative_held_time() – Get held time for resources before cancelling the order. Use 60 minutes as sane default.
WC_Coupon_Data_Store_CPT::get_tentative_usage_query_for_user() – Generate query to calculate tentative usages for the coupon by the user.
WC_Coupon_Data_Store_CPT::get_tentative_usage_query() – Generate query to calculate tentative usages for the coupon.
WC_Coupon_Data_Store_CPT::get_usage_by_email() – Get the number of uses for a coupon by email address
WC_Coupon_Data_Store_CPT::update_post_meta() – Helper method that updates all the post meta for a coupon based on it’s settings in the WC_Coupon class.
WC_Coupon_Data_Store_CPT::update_usage_count_meta() – Increase or decrease the usage count for a coupon by 1.
WC_Coupon::set_excluded_product_categories() – Set the product category IDs this coupon cannot be used with.
WC_Customer_Data_Store_Session::read() – Read customer data from the session unless the user has logged in, in which case the stored ID will differ from the actual ID.
WC_Customer_Data_Store::get_user_ids_for_billing_email() – Get all user ids who have `billing_email` set to any of the email passed in array.
WC_Customer_Data_Store::update_user_meta() – Helper method that updates all the meta for a customer. Used for update & create.
WC_Customer_Download_Data_Store::delete_by_download_id() – Method to delete a download permission from the database by download ID.
WC_Customer_Download_Data_Store::delete_by_id() – Method to delete a download permission from the database by ID.
WC_Customer_Download_Data_Store::delete_by_order_id() – Method to delete a download permission from the database by order ID.
WC_Customer_Download_Data_Store::delete_by_user_email() – Method to delete a download permission from the database by user email.
WC_Customer_Download_Data_Store::delete_by_user_id() – Method to delete a download permission from the database by user ID.
WC_Customer_Download_Data_Store::delete() – Method to delete a download permission from the database.
WC_Customer_Download_Data_Store::update_user_by_order_id() – Update user prop for downloads based on order id.