LLMS_Voucher::delete_voucher_code( int $id )

Delete a voucher code.

Parameters Parameters


(int) (Required) Voucher code id.

Top ↑

Return Return

(int}bool) The number of rows updated, or false on error.

Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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