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.
Return
String
.
Usage
$result = DataStore::normalize_order_status( $status );
- $status(string) (required)
- Order status.
DataStore::normalize_order_status() DataStore::normalize order status code WC 8.7.0
protected static function normalize_order_status( $status ) { $status = trim( $status ); return 'wc-' . $status; }