Automattic\WooCommerce\Admin\API\Reports
DataStore::normalize_order_status
Maps order status provided by the user to the one used in the database.
Метод класса: DataStore{}
Хуков нет.
Возвращает
Строку.
Использование
$result = DataStore::normalize_order_status( $status );
- $status(строка) (обязательный)
- Order status.
Код DataStore::normalize_order_status() DataStore::normalize order status WC 11.0.1
protected static function normalize_order_status( $status ) {
$status = trim( $status );
return 'wc-' . $status;
}