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