includes/class-wc-order-query.php
Method get_default_query_vars
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_default_query_vars() {
return array_merge(
parent::get_default_query_vars(),
array(
'status' => array_keys( wc_get_order_statuses() ),