Update query type for filter_empty

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
This commit is contained in:
Andrey 2023-06-26 09:30:06 +02:00 committed by GitHub
parent fc6c01736a
commit d4b77eead6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 11 deletions

View File

@ -528,19 +528,17 @@ class Controller extends GenericController implements ExportableInterface {
'type' => 'array',
'validate_callback' => 'rest_validate_request_arg',
'items' => array(
'type' => array(
'description' => __( 'Fields that required to be not empty', 'woocommerce' ),
'type' => 'string',
'enum' => array(
'email',
'name',
'country',
'city',
'state',
'postcode',
),
'type' => 'string',
'enum' => array(
'email',
'name',
'country',
'city',
'state',
'postcode',
),
),
),
);
return $params;