• 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::get_account_by_id()
Product: Virtual Events

Account_API::get_account_by_id( string $account_id )

Get a Single Zoom Account by id.

Contents

  • Parameters
  • Return
  • Source
  • Changelog

Parameters

$account_id

(string) (Required) The id of the single account.


Top ↑

Return

(TribeEventsVirtualMeetingsZoomarray<string|TribeEventsVirtualMeetingsZoomstring>) $account The Zoom account data.


Top ↑

Source

File: src/Tribe/Meetings/Zoom/Account_API.php

	public function get_account_by_id( $account_id ) {
		// Get an account and decrypt the PII.
		$account = get_option( $this->single_account_prefix . $account_id, [] );
		foreach ( $account as $field_key => $value ) {
			if ( ! array_key_exists( $field_key, $this->encrypted_fields ) ) {
				continue;
			}

			$account[ $field_key ] = $this->encryption->decrypt( $value, $this->encrypted_fields[ $field_key ] );
		}

		return $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