WC_Coupon_Data_Store_Interface::get_ids_by_code()publicWC 1.0

Return an array of IDs for for a specific coupon code. Can return multiple to check for existence.

Method of the class: WC_Coupon_Data_Store_Interface{}

No Hooks.

Return

Array. Array of IDs.

Usage

$WC_Coupon_Data_Store_Interface = new WC_Coupon_Data_Store_Interface();
$WC_Coupon_Data_Store_Interface->get_ids_by_code( $code );
$code(string) (required)
Coupon code.

WC_Coupon_Data_Store_Interface::get_ids_by_code() code WC 9.3.3

public function get_ids_by_code( $code );