Zapier_Provider::admin_routes()

Provides the routes that should be used to handle Zapier Integration requests.

The map returned by this method will be used by the TEC\Event_Automator\Traits\With_Nonce_Routes trait.


Return

(TECEvent_AutomatorZapierarray<string,callable>) A map from the nonce actions to the corresponding handlers.


Top ↑

Source

File: src/Common/Event_Automator/Zapier/Zapier_Provider.php

	public function admin_routes() {
		$actions = tribe( Actions::class );

		return [
			$actions::$add_aki_key_action => $this->container->callback( Api::class, 'ajax_add_api_key' ),
			$actions::$generate_action    => $this->container->callback( Api::class, 'ajax_generate_api_key_pair' ),
			$actions::$revoke_action      => $this->container->callback( Api::class, 'ajax_revoke' ),
		];
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.