Automattic\WooCommerce\Internal\PushNotifications\Notifications

NewOrderNotification::__constructpublicWC 10.7.0

Creates a new order notification.

Method of the class: NewOrderNotification{}

No Hooks.

Returns

null. Nothing (null).

Usage

$NewOrderNotification = new NewOrderNotification();
$NewOrderNotification->__construct( $order_id );
$order_id(int) (required)
The order ID.

Changelog

Since 10.7.0 Introduced.

NewOrderNotification::__construct() code WC 10.7.0

public function __construct( int $order_id ) {
	parent::__construct( self::TYPE, $order_id );
}