Add arguments declaration for install REST API endpoint.

This commit is contained in:
Denis Dvali 2020-02-03 14:23:03 +03:00
parent cdb611e924
commit b6be0b31f8
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ class WC_REST_WCCOM_Site_Installer_Controller extends WC_REST_Controller {
'methods' => WP_REST_Server::CREATABLE,
'callback' => array( $this, 'install' ),
'permission_callback' => array( $this, 'check_permission' ),
'args' => array(
'products' => array(
'required' => true,
'type' => 'array',
),
),
),
array(
'methods' => WP_REST_Server::DELETABLE,