Introduction
The plugin_settings_fields()
and feed_setting_fields()
functions expect an array of sections to be returned. Each section is configured with an array containing the following properties:
Property | Type | Description |
---|---|---|
title | string | The section title. |
description | string | The section description. |
id | string | The value of the id attribute of the div element containing this section. |
class | string | The value to be appended to the class attribute of the div element containing this section. |
style | string | The value to be appended to the style attribute of the div element containing this section. |
tooltip | string | The content to be included in the tooltip for this section. |
tooltip_class | string | The tooltip class; the value to be appended to the class attribute of the element containing this sections tooltip. |
dependency | string|array | See Dependency below. |
fields | array | The section fields; see Field Properties below. |
Examples
array(
array(
'title' => 'This is the title for Section 1',
'description' => 'This is a description of the purpose of Section 1',
'fields' => array()
),
array(
'title' => 'This is the title for Section 2',
'description' => 'This is a description of the purpose of Section 2',
'fields' => array()
),
);