-
Notifications
You must be signed in to change notification settings - Fork 0
Sections
github-actions[bot] edited this page Aug 26, 2024
·
12 revisions
Sections Class
- Full name:
\CourierNotices\Controller\Admin\Fields\Sections
public __construct(): mixed
Prints out all settings sections added to a particular settings page
public do_settings_sections(string $page): mixed
Part of the Settings API. Use this in a settings page callback function to output all the sections and fields that were added to that $page with add_settings_section() and add_settings_field()
Parameters:
Parameter | Type | Description |
---|---|---|
$page |
string | The slug name of the page whose settings sections you want to output. |
Print out the settings fields for a particular settings section.
public do_settings_fields(string $page, string $section): mixed
Part of the Settings API. Use this in a settings page to output a specific section. Should normally be called by do_settings_sections() rather than directly.
Parameters:
Parameter | Type | Description |
---|---|---|
$page |
string | Slug title of the admin page whose settings fields you want to show. |
$section |
string | Slug title of the settings section whose fields you want to show. |
Automatically generated on 2024-08-26