WC_Coupon_Data_Store_Interface::get_code_by_id()publicWC 1.0

Return a coupon code for a specific ID.

Метод класса: WC_Coupon_Data_Store_Interface{}

Хуков нет.

Возвращает

Строку. Coupon Code.

Использование

$WC_Coupon_Data_Store_Interface = new WC_Coupon_Data_Store_Interface();
$WC_Coupon_Data_Store_Interface->get_code_by_id( $id );
$id(int) (обязательный)
Coupon ID.

Код WC_Coupon_Data_Store_Interface::get_code_by_id() WC 8.7.0

public function get_code_by_id( $id );