WC_REST_Orders_V2_Controller::get_order_statuses()
Get order statuses without prefixes.
Method of the class: WC_REST_Orders_V2_Controller{}
No Hooks.
Return
Array
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_order_statuses();
WC_REST_Orders_V2_Controller::get_order_statuses() WC REST Orders V2 Controller::get order statuses code WC 7.7.0
protected function get_order_statuses() { $order_statuses = array( 'auto-draft' ); foreach ( array_keys( wc_get_order_statuses() ) as $status ) { $order_statuses[] = str_replace( 'wc-', '', $status ); } return $order_statuses; }