Automattic\WooCommerce\Admin\API\Reports

DataStore::normalize_order_status()protected staticWC 1.0

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() WC 8.7.0

protected static function normalize_order_status( $status ) {
	$status = trim( $status );
	return 'wc-' . $status;
}