Fixed order or collection params
This commit is contained in:
parent
17a80c863e
commit
f3fdcd2ec0
|
@ -926,26 +926,6 @@ class WC_REST_Product_Reviews_Controller extends WC_REST_Controller {
|
|||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
);
|
||||
$params['reviewer'] = array(
|
||||
'description' => __( 'Limit result set to reviews assigned to specific user IDs.', 'woocommerce' ),
|
||||
'type' => 'array',
|
||||
'items' => array(
|
||||
'type' => 'integer',
|
||||
),
|
||||
);
|
||||
$params['reviewer_exclude'] = array(
|
||||
'description' => __( 'Ensure result set excludes reviews assigned to specific user IDs.', 'woocommerce' ),
|
||||
'type' => 'array',
|
||||
'items' => array(
|
||||
'type' => 'integer',
|
||||
),
|
||||
);
|
||||
$params['reviewer_email'] = array(
|
||||
'default' => null,
|
||||
'description' => __( 'Limit result set to that from a specific author email.', 'woocommerce' ),
|
||||
'format' => 'email',
|
||||
'type' => 'string',
|
||||
);
|
||||
$params['before'] = array(
|
||||
'description' => __( 'Limit response to reviews published before a given ISO8601 compliant date.', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
|
@ -992,6 +972,26 @@ class WC_REST_Product_Reviews_Controller extends WC_REST_Controller {
|
|||
'product',
|
||||
),
|
||||
);
|
||||
$params['reviewer'] = array(
|
||||
'description' => __( 'Limit result set to reviews assigned to specific user IDs.', 'woocommerce' ),
|
||||
'type' => 'array',
|
||||
'items' => array(
|
||||
'type' => 'integer',
|
||||
),
|
||||
);
|
||||
$params['reviewer_exclude'] = array(
|
||||
'description' => __( 'Ensure result set excludes reviews assigned to specific user IDs.', 'woocommerce' ),
|
||||
'type' => 'array',
|
||||
'items' => array(
|
||||
'type' => 'integer',
|
||||
),
|
||||
);
|
||||
$params['reviewer_email'] = array(
|
||||
'default' => null,
|
||||
'description' => __( 'Limit result set to that from a specific author email.', 'woocommerce' ),
|
||||
'format' => 'email',
|
||||
'type' => 'string',
|
||||
);
|
||||
$params['product'] = array(
|
||||
'default' => array(),
|
||||
'description' => __( 'Limit result set to reviews assigned to specific product IDs.', 'woocommerce' ),
|
||||
|
|
Loading…
Reference in New Issue