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

Abstract_Account_Api::get_token_authorization_header( $access_token = '' )

Returns the access token based authorization header to send requests to the API.

Contents

  • Return
  • Source
  • Changelog

Return

(string|boolean) The authorization header, to be used in the headers section of a request to the API or false if not available.


Top ↑

Source

File: src/Tribe/Integrations/Abstract_Account_Api.php

	public function get_token_authorization_header( $access_token = '' ) {
		if ( $access_token ) {
			return 'Bearer ' . $access_token;
		}

		if ( $this->access_token ) {
			return 'Bearer ' . $this->access_token;
		}

		return false;
	}

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