LLMS_Voucher::update_voucher_code( [type] $data )

[update_voucher_code description]


Description Description


Parameters Parameters

$data

([type]) (Required) [description]


Top ↑

Return Return

([type]) [description]


Top ↑

Source Source

File: includes/class.llms.voucher.php

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

Top ↑

Changelog 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.