SettingsSection
in package
implements
SettingsSectionInterface
Base class for extensions that register a section under an existing WooCommerce settings page.
Tags
Interfaces, Classes and Traits
- SettingsSectionInterface
- Contract for extensions that register a section under an existing WooCommerce settings page.
Table of Contents
- get_save_adapter() : string
- Get the default save adapter for fields in this section.
- get_script_handles() : array<string|int, string>
- Get script handles that must be loaded before the settings UI app mounts.
Methods
get_save_adapter()
Get the default save adapter for fields in this section.
public
get_save_adapter(WC_Settings_Page $parent_page) : string
Parameters
- $parent_page : WC_Settings_Page
-
Parent settings page.
Tags
Return values
string —get_script_handles()
Get script handles that must be loaded before the settings UI app mounts.
public
get_script_handles(WC_Settings_Page $parent_page) : array<string|int, string>
Parameters
- $parent_page : WC_Settings_Page
-
Parent settings page.
