Url::to_select_account_link( WP_Post|null $post )
Returns the URL that should be used to select an account to setup for the Zoom API.
Contents
Parameters
- $post
-
(WP_Post|null) (Required) A post object to generate the meeting for.
Return
(string) The URL to select the Zoom account.
Source
File: src/Tribe/Meetings/Zoom/Url.php
public function to_select_account_link( \WP_Post $post ) {
$nonce = wp_create_nonce( API::$select_action );
return add_query_arg( [
'action' => 'ev_zoom_account_select',
Plugin::$request_slug => $nonce,
'post_id' => $post->ID,
'_ajax_nonce' => $nonce,
], admin_url( 'admin-ajax.php' ) );
}
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |