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.


Top ↑

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.


Top ↑

Source Source

File: includes/class.llms.voucher.php

View on GitHub



Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

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