API_Action::get_settings_sections()

Returns the available settings sections for the submodule.

Description

See also

Return

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

Source

File: src/modules/actions/api-action.php

	public function get_settings_sections() {
		$settings_sections = parent::get_settings_sections();

		$authentication_fields = $this->get_authentication_fields();
		if ( empty( $authentication_fields ) ) {
			return $settings_sections;
		}

		$settings_sections['authentication'] = array(
			'title' => __( 'Authentication', 'torro-forms' ),
		);

		return $settings_sections;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.