WordPress at Your Fingertips
function is not described

WC_Coupon_Data_Store_Interface::get_code_by_id() public WC 1.0

Return a coupon code for a specific ID.

{} It's a method of the class: WC_Coupon_Data_Store_Interface{}

No Hooks.

Return

String. Coupon Code.

Usage

$WC_Coupon_Data_Store_Interface = new WC_Coupon_Data_Store_Interface();
$WC_Coupon_Data_Store_Interface->get_code_by_id( $id );
$id(int) (required)
Coupon ID.

Code of WC_Coupon_Data_Store_Interface::get_code_by_id() WC 5.7.1

public function get_code_by_id( $id );