WordPress at Your Fingertips
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.


Array. Array of IDs.


$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.7.1

public function get_ids_by_code( $code );