tec_tickets_commerce_is_sandbox_mode()

Determine whether Tickets Commerce is in sandbox mode.


Return

(bool) Whether Tickets Commerce is in test mode.


Top ↑

Source

File: src/functions/commerce/provider.php

function tec_tickets_commerce_is_sandbox_mode() {
	$sandbox_mode = tribe_is_truthy( tribe_get_option( \TEC\Tickets\Commerce\Settings::$option_sandbox ) );

	/**
	 * Filter whether we should disable TribeCommerce PayPal or not.
	 *
	 * @since 5.2.0
	 *
	 * @param boolean $sandbox_mode should be available or not.
	 */
	return apply_filters( 'tec_tickets_commerce_is_sandbox_mode', $sandbox_mode );
}

Top ↑

Changelog

Changelog
Version Description
5.2.0 Modified the name of the method to tec_tickets_commerce_is_sandbox_mode
5.1.6 Introduced.