Account_API::load_account_by_id( string $account_id )
Load a specific account by the id.
Contents
Parameters
- $account_id
-
(string) (Required) The Zoom account id to get and load for use with the API.
Return
(bool|string) Whether the page is loaded or an error code. False or code means the page did not load.
Source
File: src/Tribe/Meetings/Zoom/Account_API.php
public function load_account_by_id( $account_id ) {
$account = $this->get_account_by_id( $account_id );
// Return not-found if no account.
if ( empty( $account ) ) {
return 'not-found';
}
// Return disabled if the is disabled.
if ( empty( $account['status'] ) ) {
return 'disabled';
}
return $this->load_account( $account );
}
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |