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

Abstract_Account_Api::delete_account_by_id( string $account_id )

Delete an account by ID.

Contents

  • Parameters
  • Return
  • Source
  • Changelog

Parameters

$account_id

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


Top ↑

Return

(bool) Whether the account has been deleted and the access token revoked.


Top ↑

Source

File: src/Tribe/Integrations/Abstract_Account_Api.php

	public function delete_account_by_id( $account_id ) {
		delete_option( $this->single_account_prefix . $account_id );

		$this->delete_from_list_of_accounts( $account_id );

		return true;
	}

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