Tribe__Events__Community__Tickets__Main::filter_prevent_edd_provider( string $provider )

On Community Tickets we do not allow EDD


Parameters #

$provider

(string) (Required) Which provider is the default


Top ↑

Return #

(string)


Top ↑

Source #

File: src/Tribe/Main.php

	public function filter_prevent_edd_provider( $provider ) {
		$is_admin = tribe_is_truthy( tribe_get_request_var( 'is_admin', is_admin() ) );

		if ( $is_admin ) {
			return $provider;
		}

		return 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main';
	}

Top ↑

Changelog #

Changelog
Version Description
4.6.2 Introduced.