Url::to_generate_webinar_link( WP_Post|null $post )
Returns the URL that should be used to generate a Zoom API webinar link.
Contents
Parameters
- $post
-
(WP_Post|null) (Required) A post object to generate the webinar for.
Return
(string) The URL to generate the Zoom Webinar.
Source
File: src/Tribe/Meetings/Zoom/Url.php
public function to_generate_webinar_link( \WP_Post $post ) {
$nonce = wp_create_nonce( Webinars::$create_action );
return add_query_arg(
[
'action' => 'ev_zoom_webinars_create',
Plugin::$request_slug => $nonce,
'post_id' => $post->ID,
'_ajax_nonce' => $nonce,
],
admin_url( 'admin-ajax.php' )
);
}
Changelog
| Version | Description |
|---|---|
| 1.1.1 | Introduced. |