tribe_community_tickets_get_required_plugins_array()

Get the list of plugins required by Community Events Tickets.

If used for displaying notice, plugins display in the order listed in the array. Allows for either Class Exists or Function Exists to handle plugins that load their own class a bit later than expected (e.g. Event Tickets Plus, Community Events).

See also

  • Tribe__Plugins::$tribe_plugins: Inspired by but different from.

Top ↑

Return

(array) Valid keys: short_name, class, func, thickbox_url, external_url.


Top ↑

Source

File: events-community-tickets.php

function tribe_community_tickets_get_required_plugins_array() {
	$array = [
		[
			'short_name'   => 'The Events Calendar',
			'class'        => 'Tribe__Events__Main',
			'thickbox_url' => 'plugin-install.php?tab=plugin-information&plugin=the-events-calendar&TB_iframe=true',
		],
		[
			'short_name'   => 'Event Tickets',
			'class'        => 'Tribe__Tickets__Main',
			'thickbox_url' => 'plugin-install.php?tab=plugin-information&plugin=event-tickets&TB_iframe=true',
		],
		[
			'short_name'      => 'Event Tickets Plus',
			'notice_function' => 'event_tickets_plus_show_fail_message',
			'external_url'    => 'https://theeventscalendar.com/product/wordpress-event-tickets-plus/',
		],
		[
			'short_name'      => 'Community Events',
			'notice_function' => 'tribe_events_community_show_fail_message',
			'external_url'    => 'https://theeventscalendar.com/product/wordpress-community-events/',
		],
	];

	$array[] = tribe_community_tickets_get_woocommerce_info_array();

	return $array;
}

Top ↑

Changelog

Changelog
Version Description
4.7.1 Introduced.