Zapier_Provider::pre_dispatch_verification_for_find_attendees( mixed $result, TribeTicketsPlusIntegrationsEvent_AutomatorWP_REST_Server $server, TribeTicketsPlusIntegrationsEvent_AutomatorWP_REST_Request $request )
Verify token and login user before dispatching the request.
Contents
Done on rest_pre_dispatch to be able to set current user to pass validation capability checks.
Parameters
- $result
-
(mixed) (Required) Response to replace the requested version with. Can be anything a normal endpoint can return, or null to not hijack the request.
- $server
-
(TribeTicketsPlusIntegrationsEvent_AutomatorWP_REST_Server) (Required) Server instance.
- $request
-
(TribeTicketsPlusIntegrationsEvent_AutomatorWP_REST_Request) (Required) Request used to generate the response.
Return
(null) Will always return null, failure will happen on the can_create permission check.
Source
File: src/Tribe/Integrations/Event_Automator/Zapier_Provider.php
public function pre_dispatch_verification_for_find_attendees( $result, $server, $request ) {
return $this->container->make( Find_Attendees::class )->pre_dispatch_verification( $result, $server, $request );
}
Changelog
| Version | Description |
|---|---|
| 6.0.1 | Migrated from Common to Event Tickets Plus |
| 6.0.0 | Introduced. |