Settings_Section
final class Settings_Section
A class to automate the process of creating a section for a page under the 'settings' menu item.
Properties
| protected Options_Page | $Settings_Page | ||
| protected Settings_Field[] | $Settings_Fields | ||
| string | $section | ||
| string | $label | ||
| string | $description | ||
| array | $inputs |
Methods
Return the Settings Page instance.
Return the Settings Field instances.
Set the initial values for the Settings Section.
Create a reusable section ID.
Generate the key to be used in the options table in the database.
Load and return the option associated with this section.
The template for displaying data about the section.
Details
at line 51
final Options_Page
get_settings_page()
Return the Settings Page instance.
at line 58
final Settings_Field[]
get_settings_fields()
Return the Settings Field instances.
at line 74
__construct(Options_Page $Settings_Page, string $section_name, array $args)
Set the initial values for the Settings Section.
at line 134
final string
get_section_name()
Create a reusable section ID.
at line 143
final string
get_section_option_name()
Generate the key to be used in the options table in the database.
at line 152
final mixed
load_option()
Load and return the option associated with this section.
at line 161
final
render(array $args)
The template for displaying data about the section.