'methods' => WP_REST_Server::EDITABLE,
'callback' => array
( $this, 'update_item'
),
'permission_callback' => array
( $this, 'update_item_permissions_check'
),
'args' =>
$this->
get_endpoint_args_for_item_schema( WP_REST_Server::EDITABLE
),
),
array
( 'methods' => WP_REST_Server::DELETABLE,
'callback' => array
( $this, 'delete_item'
),
'permission_callback' => array
( $this, 'delete_item_permissions_check'
),
),
'args' => array
( 'context' =>
$this->
get_context_param( array
( 'default' => 'view'
) ),
'plugin' => array
( 'type' => 'string',
'pattern' => self::PATTERN,
'validate_callback' => array
( $this, 'validate_plugin_param'
),
'sanitize_callback' => array
( $this, 'sanitize_plugin_param'
),
),
),
'schema' => array
( $this, 'get_public_item_schema'
),
) );
}