WC_Coupon_Data_Store_CPT::get_tentative_usages_for_user()
Get tentative coupon usages for user.
Method of the class: WC_Coupon_Data_Store_CPT{}
No Hooks.
Return
String|null
.
Usage
$WC_Coupon_Data_Store_CPT = new WC_Coupon_Data_Store_CPT(); $WC_Coupon_Data_Store_CPT->get_tentative_usages_for_user( $coupon_id, $user_aliases );
- $coupon_id(int) (required)
- Coupon ID.
- $user_aliases(array) (required)
- Array of user aliases to check tentative usages for.
WC_Coupon_Data_Store_CPT::get_tentative_usages_for_user() WC Coupon Data Store CPT::get tentative usages for user code WC 9.4.2
public function get_tentative_usages_for_user( $coupon_id, $user_aliases ) { global $wpdb; return $wpdb->get_var( $this->get_tentative_usage_query_for_user( $coupon_id, $user_aliases ) ); // WPCS: unprepared SQL ok. }