Module::get_meta_tabs()

Returns the available meta box tabs for the module.

Description

See also

Return

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

Source

File: src/modules/form-settings/module.php

	protected function get_meta_tabs() {
		$prefix = $this->manager()->get_prefix();

		$tabs = array(
			'labels'   => array(
				'title'       => _x( 'Labels', 'form settings tab', 'torro-forms' ),
				// 'description' => __( 'Allows you to tweak some labels and messages displayed in the form frontend.', 'torro-form' ),
			),
			'advanced' => array(
				'title'       => _x( 'Advanced', 'form settings tab', 'torro-forms' ),
				//'description' => __( 'Allows you to modify advanced form settings.', 'torro-forms' ),
			),
		);

		/**
		 * Filters the meta tabs in the form settings metabox.
		 *
		 * @since 1.0.0
		 *
		 * @param array $tabs Array of `$tab_slug => $tab_data` pairs.
		 */
		return apply_filters( "{$prefix}form_settings_meta_tabs", $tabs );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.