LLMS_Voucher::get_voucher_code_by_code_id( [type] $code_id )

[get_voucher_code_by_code_id description]


Description Description


Parameters Parameters

$code_id

([type]) (Required) [description]


Top ↑

Return Return

([type]) [description]


Top ↑

Source Source

File: includes/class.llms.voucher.php

	public function get_voucher_code_by_code_id( $code_id ) {

		global $wpdb;

		$table = $this->get_codes_table_name();

		$query = "SELECT * FROM $table WHERE `id` = $code_id AND `is_deleted` = 0 LIMIT 1";
		return $wpdb->get_row( $query );
	}

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.