Remove `modified` enum from customer because its not supported.

Customers are based on `users` table which does not have a modified or similar column to track last modified timestamp, so this param cannot be supported at this time.
This commit is contained in:
vedanshujain 2020-07-21 18:22:16 +05:30
parent a37628e94b
commit 7d335c5eab
1 changed files with 0 additions and 12 deletions

View File

@ -304,16 +304,4 @@ class WC_REST_Customers_Controller extends WC_REST_Customers_V2_Controller {
return $this->add_additional_fields_schema( $schema );
}
/**
* Add new options for 'orderby' to the collection params.
*
* @return array
*/
public function get_collection_params() {
$params = parent::get_collection_params();
$params['orderby']['enum'] = array_merge( $params['orderby']['enum'], array( 'modified' ) );
return $params;
}
}