[REST API] All items in shipping_methods endpoint are readonly
This commit is contained in:
parent
590c78ca98
commit
f65cbdbfa4
|
@ -196,16 +196,19 @@ class WC_REST_Shipping_Methods_Controller extends WC_REST_Controller {
|
||||||
'description' => __( 'Method ID.', 'woocommerce' ),
|
'description' => __( 'Method ID.', 'woocommerce' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view' ),
|
'context' => array( 'view' ),
|
||||||
|
'readonly' => true,
|
||||||
),
|
),
|
||||||
'title' => array(
|
'title' => array(
|
||||||
'description' => __( 'Shipping method title.', 'woocommerce' ),
|
'description' => __( 'Shipping method title.', 'woocommerce' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view' ),
|
'context' => array( 'view' ),
|
||||||
|
'readonly' => true,
|
||||||
),
|
),
|
||||||
'description' => array(
|
'description' => array(
|
||||||
'description' => __( 'Shipping method description.', 'woocommerce' ),
|
'description' => __( 'Shipping method description.', 'woocommerce' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view' ),
|
'context' => array( 'view' ),
|
||||||
|
'readonly' => true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue