WordPress at a glance
function is not described

WC_Order_Factory::get_order() WC 1.0

Get order.

This is a method of the class: WC_Order_Factory

No Hooks.

Return

WC_Order/true/false.

Usage

$var = WC_Order_Factory::get_order( $order_id );
$order_id(mixed)
(default: false) Order ID to get.
Default: false

Code of WC_Order_Factory::get_order: woocommerce/includes/class-wc-order-factory.php VER 3.5.2

<?php
public static function get_order( $order_id = false ) {
	$order_id = self::get_order_id( $order_id );

	if ( ! $order_id ) {
		return false;
	}

	$order_type      = WC_Data_Store::load( 'order' )->get_order_type( $order_id );
	$order_type_data = wc_get_order_type( $order_type );
	if ( $order_type_data ) {
		$classname = $order_type_data['class_name'];
	} else {
		$classname = false;
	}

	// Filter classname so that the class can be overridden if extended.
	$classname = apply_filters( 'woocommerce_order_class', $classname, $order_type, $order_id );

	if ( ! class_exists( $classname ) ) {
		return false;
	}

	try {
		return new $classname( $order_id );
	} catch ( Exception $e ) {
		wc_caught_exception( $e, __FUNCTION__, func_get_args() );
		return false;
	}
}