LLMS_Voucher::save_redeemed_code( array $data )

Save redeemed code


Parameters Parameters

$data

(array) (Required) Voucher data.


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/class.llms.voucher.php

	public function save_redeemed_code( $data ) {

		global $wpdb;

		$data['redemption_date'] = date( 'Y-m-d H:i:s' );

		return $wpdb->insert( $this->get_redemptions_table_name(), $data );
	}


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.