WC_REST_Orders_V2_Controller::get_order_statuses
Get order statuses without prefixes.
Метод класса: WC_REST_Orders_V2_Controller{}
Хуков нет.
Возвращает
Массив.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_order_statuses();
Код WC_REST_Orders_V2_Controller::get_order_statuses() WC REST Orders V2 Controller::get order statuses WC 10.7.0
protected function get_order_statuses() {
$order_statuses = array( OrderStatus::AUTO_DRAFT );
foreach ( array_keys( wc_get_order_statuses() ) as $status ) {
$order_statuses[] = str_replace( 'wc-', '', $status );
}
return $order_statuses;
}