• Home
  • Knowledgebase
  • DevDocs
  • Translations
  • Support
  • Live Preview

logo DevDocs

By The Events Calendar
Filter by type:
Skip to content
Filter by type:
Search
Browse: Home / Classes / Account_API / Account_API::load_account_by_id()
Product: Virtual Events

Account_API::load_account_by_id( string $account_id )

Load a specific account by the id.

Contents

  • Parameters
  • Return
  • Source
  • Changelog

Parameters

$account_id

(string) (Required) The Zoom account id to get and load for use with the API.


Top ↑

Return

(bool|string) Whether the page is loaded or an error code. False or code means the page did not load.


Top ↑

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 );
	}

Expand full source code Collapse full source code


Top ↑

Changelog

Changelog
Version Description
1.5.0 Introduced.
The Events Calendar
  • Home
  • Products
  • Blog
  • Support
© 2026 The Events Calendar Terms and Conditions Privacy