Payments_Tab::get_fields()

Gets the top level settings for Tickets Commerce.


Return

(array[])


Top ↑

Source

File: src/Tickets/Commerce/Payments_Tab.php

	public function get_fields(): array {
		$section_gateway = $this->get_section_gateway();

		$fields = [
			'tribe-form-content-start' => [
				'type' => 'html',
				'html' => '<div class="tribe-settings-form-wrap">',
			],
		];

		if ( empty( $section_gateway ) ) {
			$fields = array_merge( $fields, $this->get_tickets_commerce_section_fields() );
		} else {
			$fields = array_merge( $fields, $this->get_gateway_section_fields( $section_gateway ) );
		}

		/**
		 * Hook to modify the top level settings for Tickets Commerce.
		 *
		 * @since 5.2.0
		 *
		 * @param array[] $top_level_settings Top level settings.
		 */
		return apply_filters( 'tec_tickets_commerce_settings_top_level', array_merge( $this->get_section_menu(), $fields ) );
	}

Top ↑

Changelog

Changelog
Version Description
5.3.0 Introduced.