WordPress at a glance
function is not described

WC_REST_Orders_V1_Controller::get_order_statuses() protected WC 1.0

Get order statuses without prefixes.

{} It's a 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();

Code of WC_REST_Orders_V1_Controller::get_order_statuses() WC 5.0.0

<?php
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;
}