protected $allow_batch = false;
/**
* Registers the routes for attachments.
*
* @since 5.3.0
*
* @see register_rest_route()
*/
public function register_routes() { parent::
register_routes();
register_rest_route( $this->namespace,
'/' .
$this->rest_base . '/(?P<id>[\d]+)/post-process',
array
( 'methods' => WP_REST_Server::CREATABLE,
'callback' => array
( $this, 'post_process_item'
),
'permission_callback' => array
( $this, 'post_process_item_permissions_check'
),
'args' => array
( 'id' => array
( 'description' =>
__( 'Unique identifier for the attachment.'
),
'type' => 'integer',
),