Password::check_zoom_meeting()
Check Zoom Meeting on Front End.
Return
(bool|void) Whether the update completed.
Source
File: src/Tribe/Meetings/Zoom/Password.php
public function check_zoom_meeting() {
if ( ! is_singular( Events_Plugin::POSTTYPE ) ) {
return;
}
global $post;
/** @var \Tribe__Cache $cache */
$cache = tribe( 'cache' );
$transient_name = $post->ID . '_zoom_pw_last_check';
$last_check = (string) get_transient( $transient_name );
if ( $last_check ) {
return;
}
$cache->set_transient( $transient_name, true, HOUR_IN_SECONDS );
return $this->update_password_from_zoom( $post );
}
Changelog
| Version | Description |
|---|---|
| 1.9.0 | Introduced. |