Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / includes/data-stores/class-wc-coupon-data-store-cpt.php

WC_Coupon_Data_Store_CPT::get_tentative_usage_query_for_user()

Method: Generate query to calculate tentative usages for the coupon by the user.

Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:665

Used by 2 functions | Uses 0 functions

WC_Coupon_Data_Store_CPT::get_code_by_id()

Method: Return a coupon code for a specific ID.

Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:698

Used by 0 functions | Uses 0 functions

WC_Coupon_Data_Store_CPT::get_ids_by_code()

Method: Return an array of IDs for for a specific coupon code.

Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:720

Used by 0 functions | Uses 1 function

WC_Coupon_Data_Store_CPT::get_tentative_usage_query()

Method: Generate query to calculate tentative usages for the coupon.

Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:571

Used by 2 functions | Uses 0 functions

WC_Coupon_Data_Store_CPT::check_and_hold_coupon_for_user()

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

Used by 0 functions | Uses 3 functions

woocommerce_decrease_coupon_usage_count

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

Used by 1 function | Uses 0 functions

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

Used by 2 functions | Uses 0 functions

WC_Coupon_Data_Store_CPT::get_tentative_usage_count()

Method: Returns tentative usage count for coupon.

Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:418

Used by 0 functions | Uses 1 function

WC_Coupon_Data_Store_CPT::get_usage_by_user_id()

Method: Get the number of uses for a coupon by user ID.

Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:434

Used by 0 functions | Uses 1 function

WC_Coupon_Data_Store_CPT::get_usage_by_email()

Method: Get the number of uses for a coupon by email address

Source: includes/data-stores/class-wc-coupon-data-store-cpt.php:455

Used by 0 functions | Uses 1 function
1 2 3 Next »
Proudly powered by WordPress