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

Abstract_Account_Api::get_account_by_id( string $account_id )

Get a Single Account by id.

Contents

  • Parameters
  • Return
  • Source
  • Changelog

Parameters

$account_id

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


Top ↑

Return

(TribeEventsVirtualIntegrationsarray<string|TribeEventsVirtualIntegrationsstring>) $account The account data or empty array if no account.


Top ↑

Source

File: src/Tribe/Integrations/Abstract_Account_Api.php

	public function get_account_by_id( $account_id ) {
		return get_option( $this->single_account_prefix . $account_id, [] );
	}

Expand full source code Collapse full source code


Top ↑

Changelog

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