Google_Provider::admin_routes()
Provides the routes that should be used to handle Google API requests.
The map returned by this method will be used by the Tribe\Events\Virtual\Traits\With_Nonce_Routes trait.
Return
(TribeEventsVirtualMeetingsarray<string,callable>) A map from the nonce actions to the corresponding handlers.
Source
File: src/Tribe/Meetings/Google_Provider.php
public function admin_routes() {
$actions = tribe( Actions::class );
return [
$actions::$authorize_nonce_action => $this->container->callback( Api::class, 'handle_auth_request' ),
$actions::$status_action => $this->container->callback( Api::class, 'ajax_status' ),
$actions::$delete_action => $this->container->callback( Api::class, 'ajax_delete' ),
$actions::$select_action => $this->container->callback( Classic_Editor::class, 'ajax_selection' ),
$actions::$create_action => $this->container->callback( Meetings::class, 'ajax_create' ),
$actions::$remove_action => $this->container->callback( Meetings::class, 'ajax_remove' ),
];
}
Changelog
| Version | Description |
|---|---|
| 1.11.0 | Introduced. |