Form_Settings_Page::get_sections()

Returns the available settings sections.

Description

Return

(array) Associative array of <code>$section_slug => $section_args</code> pairs.

Source

File: src/db-objects/forms/form-settings-page.php

	protected function get_sections() {
		$sections = array(
			'modules'       => array(
				'subtab' => 'general',
				'title'  => _x( 'Modules', 'form settings', 'torro-forms' ),
			),
			'form_behavior' => array(
				'subtab' => 'general',
				'title'  => __( 'Form Behavior', 'torro-forms' ),
			),
			'advanced'      => array(
				'subtab' => 'general',
				'title'  => _x( 'Advanced', 'form settings', 'torro-forms' ),
			),
		);

		/**
		 * Filters the form settings sections.
		 *
		 * @since 1.0.0
		 *
		 * @param array $tabs Associative array of `$section_slug => $section_args` pairs.
		 */
		return apply_filters( "{$this->manager->get_prefix()}settings_sections", $sections );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.