LLMS_Voucher::get_redemptions_for_code_by_user( int $code_id, int $user_id )

Retrieve the number of times a voucher was redeemed by a specific user


Description Description

Hint, it should always be 1 or 0


Parameters Parameters

$code_id

(Required) Voucher Code ID from wp_lifterlms_vouchers_codes table.

$user_id

(Required) User ID from wp_users tables.


Top ↑

Return Return

(int)


Top ↑

Source Source

File: includes/class.llms.voucher.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.