WC_Coupon_Data_Store_Interface::get_code_by_id()
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 Coupon Data Store Interface::get code by id WC 9.5.1
public function get_code_by_id( $id );