LLMS_Voucher::get_voucher_by_voucher_id()
Get a single voucher code by id
Return Return
(obj)
Source Source
File: includes/class.llms.voucher.php
129 130 131 132 133 134 135 136 137 | public function get_voucher_by_voucher_id() { global $wpdb ; $table = $this ->get_codes_table_name(); $query = "SELECT * FROM $table WHERE `voucher_id` = $this->id AND `is_deleted` = 0 LIMIT 1" ; return $wpdb ->get_row( $query ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |