Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
MEC_HELPERS::get_events_select_field( $args = array() )

Returns the configurations for our ‘Events’ dropdown.

Contents


Return Return

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


Source Source

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

	public function get_events_select_field( $args = array() ) {
		$defaults = array(
			'input_type'               => 'select',
			'option_code'              => 'MEC_SELECTED_EVENT_ID',
			'options'                  => $this->get_events(),
			'required'                 => true,
			'label'                    => esc_html__( 'List of available Events', 'uncanny-automator' ),
			'description'              => esc_html__( 'Select from the list of available Events. The selected Event must have a Ticket.', 'uncanny-automator' ),
			'is_ajax'                  => true,
			'endpoint'                 => 'ua_mec_select_event_ticket',
			'fill_values_in'           => 'MEC_SELECTED_TICKET_ID',
			'supports_token'           => false,
			'supports_multiple_values' => false,
			'supports_custom_value'    => false,
		);
		$config = wp_parse_args( $args, $defaults );
		return $config;
	}