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

Abstract_Account_Api::set_account_access_by_id( string $account_id, string $access_token, string $refresh_token, string $expiration )

Set an Account Access Data with the provided id.

Contents

  • Parameters
  • Source
  • Changelog

Parameters

$account_id

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

$access_token

(string) (Required) The Account API access token.

$refresh_token

(string) (Required) The Account API refresh token.

$expiration

(string) (Required) The expiration in seconds as provided by the server.


Top ↑

Source

File: src/Tribe/Integrations/Abstract_Account_Api.php

	public function set_account_access_by_id( $account_id, $access_token, $refresh_token, $expiration ) {
		$account_data                  = $this->get_account_by_id( $account_id );
		$account_data['access_token']  = $access_token;
		$account_data['refresh_token'] = $refresh_token;
		$account_data['expiration']    = $expiration;

		$this->set_account_by_id( $account_data );
	}

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