Abstract_Meetings::ajax_remove( string|null $nonce = null )
Handles the AJAX request to remove the Zoom Meeting information from an event.
Contents
Parameters
- $nonce
-
(string|null) (Optional) The nonce that should accompany the request.
Default value: null
Return
(bool|string) Whether the request was handled or a string with html for meeting creation.
Source
File: src/Tribe/Meetings/Zoom/Abstract_Meetings.php
public function ajax_remove( $nonce = null ) {
if ( ! $this->check_ajax_nonce( static::$remove_action, $nonce ) ) {
return false;
}
// phpcs:ignore
if ( ! $event = $this->check_ajax_post() ) {
return false;
}
// Remove the meta, but not the data.
Zoom_Meta::delete_meeting_meta( $event->ID );
// Send the HTML for the meeting creation.
$this->classic_editor->render_initial_zoom_setup_options( $event, true );
wp_die();
return true;
}
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |