llms_find_coupon( string $code = '', int $dupcheck_id )
Get the most recently created coupon ID for a given code
Description Description
Parameters Parameters
- $code
-
(Optional) The coupon's code (title). Default is empty string.
Default value: ''
- $dupcheck_id
-
(Optional) Coupon id that can be passed which will be excluded during the query this is used to dupcheck the coupon code during coupon creation. Default is 0.
Return Return
(int)
Source Source
File: includes/llms.functions.core.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |