WC_Abstract_Order::get_valid_statuses()protectedWC 3.0.0

Get all valid statuses for this order

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

No Hooks.

Return

Array. Internal status keys e.g. 'wc-processing'

Usage

// protected - for code of main (parent) or child class
$result = $this->get_valid_statuses();

Changelog

Since 3.0.0 Introduced.

Code of WC_Abstract_Order::get_valid_statuses() WC 6.9.4

protected function get_valid_statuses() {
	return array_keys( wc_get_order_statuses() );
}