Automattic\WooCommerce\Utilities
OrderUtil::get_order_type()
Returns type pf passed id, post or order object.
Метод класса: OrderUtil{}
Хуков нет.
Возвращает
Строку|null
. Type of the order.
Использование
$result = OrderUtil::get_order_type( $order_id );
Код OrderUtil::get_order_type() OrderUtil::get order type WC 8.3.1
public static function get_order_type( $order_id ) { return wc_get_container()->get( COTMigrationUtil::class )->get_order_type( $order_id ); }