Section Properties

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:

PropertyTypeDescription
titlestringThe section title.
descriptionstringThe section description.
idstringThe value of the id attribute of the div element containing this section.
classstringThe value to be appended to the class attribute of the div element containing this section.
stylestringThe value to be appended to the style attribute of the div element containing this section.
tooltipstringThe content to be included in the tooltip for this section.
tooltip_classstringThe tooltip class; the value to be appended to the class attribute of the element containing this sections tooltip.
dependencystring|arraySee Dependency below.
fieldsarrayThe 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()
    ),
);

Resources