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