Tribe__Tickets_Plus__Service_Providers__Promoter::register()

Binds and sets up implementations.


Source #

File: src/Tribe/Service_Providers/Promoter.php

	public function register() {
		$this->container->bind(
			'tickets-plus.commerce.edd.promoter-observer',
			Tribe__Tickets_Plus__Commerce__EDD__Promoter_Observer::class
		);

		$this->container->bind(
			'tickets-plus.commerce.woo.promoter-observer',
			Tribe__Tickets_Plus__Commerce__WooCommerce__Promoter_Observer::class
		);

		// Make sure hooks are only registered if ET Observer is registered
		if ( tribe()->isBound( 'tickets.promoter.observer' ) ) {
			$this->hook();
		}
	}

Top ↑

Changelog #

Changelog
Version Description
TBD Introduced.