Attendee_Registration::get_iac_fields()

Get the IAC options field.


Return #

(array) Key value pair for IAC options.


Top ↑

Source #

File: src/Tickets_Plus/Admin/Tabs/Attendee_Registration.php

	public function get_iac_fields(): array {
		$iac_tooltip = esc_html_x(
			'The default Individual Attendee Collection option when you create new tickets, which may be customized per ticket.',
			'tooltip for Individual Attendee Collection setting',
			'event-tickets-plus'
		);

		/** @var IAC $iac */
		$iac = tribe( 'tickets-plus.attendee-registration.iac' );

		$iac_option_name = $iac->get_default_iac_setting_option_name();
		$iac_default     = $iac->get_default_iac_setting();
		$iac_options     = $iac->get_iac_setting_options();

		$options = [
			'iac-heading' => [
				'type' => 'html',
				'html' => '<h3>' . __( 'Individual Attendee Collection', 'event-tickets-plus' ) . '</h3>',
			],
			$iac_option_name => [
				'type'            => 'dropdown',
				'label'           => esc_html_x( 'Individual Attendee Collection Default Setting', 'Individual Attendee Collection settings label', 'event-tickets-plus' ),
				'tooltip'         => $iac_tooltip,
				'validation_type' => 'options',
				'size'            => 'large',
				'default'         => $iac_default,
				'options'         => $iac_options,
			]
		];

		return $options;
	}

Top ↑

Changelog #

Changelog
Version Description
5.5.1 Introduced.