WooCommerce Code Reference

SettingsSection
in package
implements SettingsSectionInterface

Base class for extensions that register a section under an existing WooCommerce settings page.

Tags
since
10.9.0

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_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.

Tags
since
10.9.0
Return values
array<string|int, string>