LLMS_Voucher::delete_voucher_code( int $id )
Delete a voucher code.
Parameters Parameters
- $id
-
(int) (Required) Voucher code id.
Return Return
(int}bool) The number of rows updated, or false on error.
Source Source
File: includes/class.llms.voucher.php
public function delete_voucher_code( $id ) { global $wpdb; $data['updated_at'] = date( 'Y-m-d H:i:s' ); $data['is_deleted'] = 1; $where = array( 'id' => $id, ); unset( $data['id'] ); return $wpdb->update( $this->get_codes_table_name(), $data, $where ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |