Form_Settings_Page::get_tabs()

Returns the available settings tabs.

Description

Return

(array) Associative array of <code>$tab_slug => $tab_args</code> pairs.

Source

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

	protected function get_tabs() {
		$tabs = array(
			'general_settings' => array(
				'title'            => _x( 'General', 'form settings', 'torro-forms' ),
				'rest_description' => _x( 'Torro Forms general settings.', 'REST API description', 'torro-forms' ),
			),
			'extension_settings' => array(
				'title'            => _x( 'Extensions', 'form settings', 'torro-forms' ),
				'rest_description' => _x( 'Torro Forms extension settings.', 'REST API description', 'torro-forms' ),
			),
		);

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

Changelog

Changelog
Version Description
1.0.0 Introduced.