LLMS_Voucher::update_voucher_code( array $data )
Update a voucher code.
Parameters Parameters
- $data
-
(array) (Required) Array of voucher data.
Return Return
(int|bool) The number of rows updated, or false on error.
Source Source
File: includes/class.llms.voucher.php
233 234 235 236 237 238 239 240 241 242 243 244 | public function update_voucher_code( $data ) { global $wpdb ; $data [ 'updated_at' ] = date ( 'Y-m-d H:i:s' ); $where = array ( 'id' => $data [ '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. |