WC_Order::is_created_via( string $modus )

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


Description Description


Parameters Parameters

$modus

(Required) Way of creating the order to test for.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-order.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.