Tribe__Tickets__REST__V1__Main::hook()

Hooks the filters and actions required for the REST API support to kick in.

Contents


Source

File: src/Tribe/REST/V1/Main.php

	public function hook() {
		$this->hook_headers();
		$this->hook_settings();

		/** @var Tribe__Tickets__REST__V1__System $system */
		$system = tribe( 'tickets.rest-v1.system' );

		if ( ! $system->supports_et_rest_api() || ! $system->et_rest_api_is_enabled() ) {
			return;
		}

	}

Top ↑

Changelog

Changelog
Version Description
4.7.5 Introduced.