[REST API] All items in shipping_methods endpoint are readonly

This commit is contained in:
Claudio Sanches 2017-03-23 17:59:50 -03:00
parent 590c78ca98
commit f65cbdbfa4
1 changed files with 3 additions and 0 deletions

View File

@ -196,16 +196,19 @@ class WC_REST_Shipping_Methods_Controller extends WC_REST_Controller {
'description' => __( 'Method ID.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view' ),
'readonly' => true,
),
'title' => array(
'description' => __( 'Shipping method title.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view' ),
'readonly' => true,
),
'description' => array(
'description' => __( 'Shipping method description.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view' ),
'readonly' => true,
),
),
);