Automattic\WooCommerce\Admin\API\Reports
DataStore::normalize_order_status
Maps order status provided by the user to the one used in the database.
Method of the class: DataStore{}
No Hooks.
Returns
String.
Usage
$result = DataStore::normalize_order_status( $status );
- $status(string) (required)
- Order status.
DataStore::normalize_order_status() DataStore::normalize order status code WC 10.4.3
protected static function normalize_order_status( $status ) {
$status = trim( $status );
return 'wc-' . $status;
}