WooCommerce Code Reference

SettingsSectionInterface

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

Tags
since
10.9.0

Table of Contents

get_id()  : string
Get the section id.
get_label()  : string
Get the section label.
get_parent_page_id()  : string
Get the parent WooCommerce settings page id.
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.
get_settings()  : array<string|int, mixed>
Get legacy settings for this section.

Methods