'/' .
$this->rest_base . '/(?P<plugin>' . self::PATTERN . ')',
array
( array
( 'methods' => WP_REST_Server::READABLE,
'callback' => array
( $this, 'get_item'
),
'permission_callback' => array
( $this, 'get_item_permissions_check'
),
),
array
( '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,