Tribe__Events__Pro__Main::filter_settings_tab_fields( $fields,  $tab )


Source

File: src/Tribe/Main.php

		public function filter_settings_tab_fields( $fields, $tab ) {
			$this->singular_event_label = tribe_get_event_label_singular();
			$this->plural_event_label = tribe_get_event_label_plural();
			switch ( $tab ) {
				case 'display':
					$fields = Tribe__Main::array_insert_after_key(
						'tribeDisableTribeBar',
						$fields,
						array(
							'hideRelatedEvents' => array(
								'type'            => 'checkbox_bool',
								'label'           => __( 'Hide related events', 'tribe-events-calendar-pro' ),
								'tooltip'         => __( 'Remove related events from the single event view (with classic editor)', 'tribe-events-calendar-pro' ),
								'default'         => false,
								'validation_type' => 'boolean',
							),
						)
					);
					$fields = Tribe__Main::array_insert_after_key(
						'monthAndYearFormat',
						$fields,
						array(
							'weekDayFormat' => array(
								'type'            => 'text',
								'label'           => __( 'Week Day Format', 'tribe-events-calendar-pro' ),
								'tooltip'         => __( 'Enter the format to use for week days. Used when showing days of the week in Week view.', 'tribe-events-calendar-pro' ),
								'default'         => 'D jS',
								'size'            => 'medium',
								'validation_type' => 'not_empty',
							),
						)
					);
					$fields = Tribe__Main::array_insert_after_key(
						'hideRelatedEvents',
						$fields,
						array(
							'week_view_hide_weekends' => array(
								'type'            => 'checkbox_bool',
								'label'           => __( 'Hide weekends on Week View', 'tribe-events-calendar-pro' ),
								'tooltip'         => __( 'Check this to only show weekdays on Week View', 'tribe-events-calendar-pro' ),
								'default'         => false,
								'validation_type' => 'boolean',
							),
						)
					);
					$fields = Tribe__Main::array_insert_before_key(
						'tribeEventsBeforeHTML',
						$fields,
						array(
							'tribeEventsShortcodeBeforeHTML' => array(
								'type'            => 'checkbox_bool',
								'label'           => __( 'Enable the Before HTML (below) on shortcodes.', 'tribe-events-calendar-pro' ),
								'tooltip'         => __( 'Check this to show the Before HTML from the text area below on events displayed via shortcode.', 'tribe-events-calendar-pro' ),
								'default'         => false,
								'validation_type' => 'boolean',
							),
						)
					);
					$fields = Tribe__Main::array_insert_before_key(
						'tribeEventsAfterHTML',
						$fields,
						array(
							'tribeEventsShortcodeAfterHTML' => array(
								'type'            => 'checkbox_bool',
								'label'           => __( 'Enable the After HTML (below) on shortcodes.', 'tribe-events-calendar-pro' ),
								'tooltip'         => __( 'Check this to show the After HTML from the text area below on events displayed via shortcode.', 'tribe-events-calendar-pro' ),
								'default'         => false,
								'validation_type' => 'boolean',
							),
						)
					);
					break;
			}

			return $fields;
		}