WordPress at a glance
function is not described

WC_Order::is_created_via() public WC 4.0.0

Check if order has been created via admin, checkout, or in another way.

{} It's a method of the class: WC_Order{}

Hooks from the method
Return

true/false.

Usage

$WC_Order = new WC_Order();
$WC_Order->is_created_via( $modus );
$modus(string) (required)
Way of creating the order to test for.

Changelog

Since 4.0.0 Introduced.

Code of WC_Order::is_created_via() WC 5.0.0

<?php
public function is_created_via( $modus ) {
	return apply_filters( 'woocommerce_order_is_created_via', $modus === $this->get_created_via(), $this, $modus );
}