do_action( 'llms_voucher_used', int $voucher_id , int $user_id , string $voucher_code )
Perform action before voucher redeemed.
Description Description
Action to perform before the voucher redeemed.
Parameters Parameters
- $voucher_id
-
(int) Voucher id of the voucher being redeemed.
- $user_id
-
(int) WP_User ID of the user redeeming the voucher.
- $voucher_code
-
(string) Voucher code of the voucher being redeemed.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.27.0 | Changed $voucher_title to $voucher_code to fix undefined property notice. |
3.24.1 | Added $voucher_title parameter. |
2.2.1 | Introduced. |