Automattic\WooCommerce\Blocks\Domain\Services
DraftOrders::register_draft_order_post_status()
Register custom order post status for orders created via the API during checkout.
Метод класса: DraftOrders{}
Хуков нет.
Возвращает
Массив
.
Использование
$DraftOrders = new DraftOrders(); $DraftOrders->register_draft_order_post_status( $statuses );
- $statuses(массив) (обязательный)
- Array of statuses.
Код DraftOrders::register_draft_order_post_status() DraftOrders::register draft order post status WC 7.5.1
public function register_draft_order_post_status( array $statuses ) { $statuses[ self::DB_STATUS ] = $this->get_post_status_properties(); return $statuses; }