Classic_Editor::get_meeting_details( WP_Post $post, bool $echo = true, null|string $account_id = null, bool $account_loaded = false )
Get an existing Meeting details.
Contents
Parameters
- $post
-
(WP_Post) (Required) The post object of the Event context of the link generation.
- $echo
-
(bool) (Optional) Whether to print the rendered HTML to the page or not.
Default value: true
- $account_id
-
(null|string) (Optional) The account id to use to load the link generators.
Default value: null
- $account_loaded
-
(bool) (Optional) The account is loaded successfully into the API.
Default value: false
Return
(string|false) Either the final content HTML or false if the template could be found.
Source
File: src/Tribe/Meetings/Zoom/Classic_Editor.php
public function get_meeting_details( \WP_Post $post, $echo = true, $account_id = null, $account_loaded = false ) {
// Make sure to apply the Zoom properties to the event.
$post = Zoom_Meta::add_event_properties( $post );
// Load the account for the API instance.
if ( ! $account_loaded ) {
$account_loaded = $this->api->load_account_by_id( $account_id );
}
return $this->render_meeting_details( $post, $echo, $account_id, $account_loaded );
}
Changelog
| Version | Description |
|---|---|
| 1.8.0 | Introduced. |