WordPress at Your Fingertips
function is not described

WC_Coupon_Data_Store_Interface::get_usage_by_user_id() public WC 1.0

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

{} It's a method of the class: WC_Coupon_Data_Store_Interface{}

No Hooks.

Return

Int.

Usage

$WC_Coupon_Data_Store_Interface = new WC_Coupon_Data_Store_Interface();
$WC_Coupon_Data_Store_Interface->get_usage_by_user_id( $coupon, $user_id );
$coupon(WC_Coupon) (required) (passed by reference — &)
Coupon object.
$user_id(int) (required)
User ID.

Code of WC_Coupon_Data_Store_Interface::get_usage_by_user_id() WC 5.6.0

public function get_usage_by_user_id( &$coupon, $user_id );