WordPress at Your Fingertips
function is not described

WC_Abstract_Order::get_valid_statuses() protected WC 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 5.8.0

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