I'm using wordpress wp-api to create some endpoints and I have this call:
register_rest_route('1.00', '/trial/confirm', array(
'methods' => 'POST',
'callback' => array($trial_service, 'callback_confirm'),
'permission_callback' => array($this, 'check_permission_master'),
'args' => array(
'token' => array(
'required' => true,
'sanitize_callback' => 'esc_attr'
)
)
));
I would like to know how to pass arguments beyond just $request to the permission_callback function. Any help would be much appreciated.