MEC_HELPERS::get_tickets_select_field( $args = array() )

Returns the configurations for our ‘Tickets’ dropdown.

Contents


Return Return

(array) The parameters of the 'Tickets' dropdown.


Source Source

File: src/integrations/modern-events-calendar/helpers/mec-helpers.php

	public function get_tickets_select_field( $args = array() ) {

		$defaults = array(
			'input_type'               => 'select',
			'option_code'              => 'MEC_SELECTED_TICKET_ID',
			'options'                  => array(),
			'required'                 => true,
			'label'                    => esc_html__( 'Select a Ticket', 'uncanny-automator' ),
			'description'              => esc_html__( 'Use the dropdown to select a Ticket associated from the previously selected Event', 'uncanny-automator' ),
			'supports_token'           => false,
			'supports_multiple_values' => false,
			'supports_custom_value'    => false,
		);

		$config = wp_parse_args( $args, $defaults );

		return $config;

	}