WordPress at Your Fingertips
function is not described

WC_Coupon_Data_Store_CPT::get_tentative_usages_for_user() public WC 1.0

Get tentative coupon usages for user.

{} It's a 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.

Code of WC_Coupon_Data_Store_CPT::get_tentative_usages_for_user() WC 5.8.0

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.

}