WC_REST_Orders_V1_Controller::get_order_statuses()protectedWC 1.0

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() code WC 8.6.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;
}