Webhooks secret not mandatory in REST API

This commit is contained in:
Claudio Sanches 2017-12-01 11:48:38 -02:00
parent 46cfe9e3b6
commit 5cda80330d
1 changed files with 0 additions and 5 deletions

View File

@ -69,11 +69,6 @@ class WC_REST_Webhooks_V1_Controller extends WC_REST_Controller {
'type' => 'string',
'description' => __( 'Webhook delivery URL.', 'woocommerce' ),
),
'secret' => array(
'required' => true,
'type' => 'string',
'description' => __( 'Webhook secret.', 'woocommerce' ),
),
) ),
),
'schema' => array( $this, 'get_public_item_schema' ),