Attendee_Registration::register_tab( $admin_page )

Register the Tab.


Parameters #

(string) (Required) Admin page id.


Top ↑

Source #

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

	public function register_tab( $admin_page ) {
		if ( ! empty( $admin_page ) && Plugin_Settings::$settings_page_id !== $admin_page ) {
			return;
		}

		$tab_settings = [
			'priority'  => 30,
			'fields'    => $this->get_fields(),
			'show_save' => true,
		];

		/**
		 * Filter the tab settings options.
		 *
		 * @since 5.5.1
		 *
		 * @param array Key value pairs of setting options.
		 */
		$tab_settings = apply_filters( 'tec_tickets_plus_attendee_registration_tab_settings', $tab_settings );

		new \Tribe__Settings_Tab( static::$slug, esc_html__( 'Attendee Registration', 'event-tickets-plus' ), $tab_settings );
	}

Top ↑

Changelog #

Changelog
Version Description
5.5.1 Introduced.