Automattic\WooCommerce\Blocks\Domain\Services

DraftOrders::register_draft_order_post_status()publicWC 1.0

Register custom order post status for orders created via the API during checkout.

Method of the class: DraftOrders{}

No Hooks.

Return

Array.

Usage

$DraftOrders = new DraftOrders();
$DraftOrders->register_draft_order_post_status( $statuses );
$statuses(array) (required)
Array of statuses.

DraftOrders::register_draft_order_post_status() code WC 8.7.0

public function register_draft_order_post_status( array $statuses ) {
	$statuses[ self::DB_STATUS ] = $this->get_post_status_properties();
	return $statuses;
}