Provider

Class Provider


Source

File: src/Tribe/Views/V2/Shortcodes/REST/V1/Provider.php

class Provider extends Service_Provider implements Provider_Contract {

	/**
	 * Registers the implementations and filters required by the plugin
	 * to integrate with Custom Tables Queries.
	 *
	 * @since 7.2.0
	 */
	public function register() {
		$this->container->singleton( Calender_Embed::class );

		add_action( 'rest_api_init', $this->container->callback( Calender_Embed::class, 'register' ) );
	}

	/**
	 * Unregisters the implementations and filters required by the plugin
	 * to integrate with Custom Tables Queries.
	 *
	 * @since 7.2.0
	 */
	public function unregister() {
		remove_action( 'rest_api_init', $this->container->callback( Calender_Embed::class, 'register' ) );
	}
}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

Methods

  • register — Registers the implementations and filters required by the plugin to integrate with Custom Tables Queries.
  • unregister — Unregisters the implementations and filters required by the plugin to integrate with Custom Tables Queries.