AMELIABOOKING_TOKENS::get_reservation_tokens_pro()

Get the additional tokens if Automator Pro and Amelia Pro is installed and activated.


Return Return

(array) The list of reservation tokens.


Source Source

File: src/integrations/ameliabooking/tokens/ameliabooking-tokens.php

	public function get_reservation_tokens_pro() {

		$is_amelia_free = defined( 'AMELIA_LITE_VERSION' ) && true === AMELIA_LITE_VERSION;

		if ( is_automator_pro_active() && ! $is_amelia_free ) {

			return array(
				array(
					'name' => esc_html__( 'Event organizer', 'uncanny-automator' ),
					'id'   => 'event_organizer',
				),
				array(
					'name' => esc_html__( 'Event tags', 'uncanny-automator' ),
					'id'   => 'event_tags',
				),
			);

		}

		return array();

	}