Power_Automate_Provider::pre_dispatch_verification_for_create_events( mixed $result, TribeEventsProIntegrationsEvent_AutomatorWP_REST_Server $server, TribeEventsProIntegrationsEvent_AutomatorWP_REST_Request $request )

Verify token and login user before dispatching the request.

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

(TribeEventsProIntegrationsEvent_AutomatorWP_REST_Server) (Required) Server instance.

$request

(TribeEventsProIntegrationsEvent_AutomatorWP_REST_Request) (Required) Request used to generate the response.


Top ↑

Return

(null) With always return null, failure will happen on the can_create permission check.


Top ↑

Source

File: src/Tribe/Integrations/Event_Automator/Power_Automate_Provider.php

	public function pre_dispatch_verification_for_create_events( $result, $server, $request ) {
		return $this->container->make( Create_Events::class )->pre_dispatch_verification( $result, $server, $request );
	}

Top ↑

Changelog

Changelog
Version Description
7.0.3 Introduced.