WordPress at a glance
function is not described

WC_Coupon_Data_Store_Interface::get_ids_by_code() public WC 1.0

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

{} It's a 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.

Code of WC_Coupon_Data_Store_Interface::get_ids_by_code() WC 5.0.0

<?php
public function get_ids_by_code( $code );