tribe_register_community_tickets()

Attempt to register this plugin.


Source #

File: events-community-tickets.php

function tribe_register_community_tickets() {

	//remove action if we run this hook through common
	remove_action( 'plugins_loaded', 'tribe_register_community_tickets', 50 );

	// if we do not have a dependency checker then shut down
	if ( ! class_exists( 'Tribe__Abstract_Plugin_Register' ) ) {

		add_action( 'admin_notices', 'tribe_show_community_tickets_fail_message' );
		add_action( 'network_admin_notices', 'tribe_show_community_tickets_fail_message' );

		//prevent loading of PRO
		remove_action( 'tribe_common_loaded', 'tribe_events_community_tickets_init' );

		return;
	}

	tribe_init_community_tickets_autoloading();

	new Tribe__Events__Community__Tickets__Plugin_Register();

}

Top ↑

Changelog #

Changelog
Version Description
4.6 Introduced.