WC_Order_Data_Store_Interface::get_order_id_by_order_key()publicWC 1.0

Finds an Order ID based on an order key.

{} Это метод класса: WC_Order_Data_Store_Interface{}

Хуков нет.

Возвращает

int. The ID of an order, or 0 if the order could not be found.

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

$WC_Order_Data_Store_Interface = new WC_Order_Data_Store_Interface();
$WC_Order_Data_Store_Interface->get_order_id_by_order_key( $order_key );
$order_key(строка) (обязательный)
An order key has generated by.

Код WC_Order_Data_Store_Interface::get_order_id_by_order_key() WC 6.4.1

public function get_order_id_by_order_key( $order_key );