WooCommerce Code Reference

Search results

WC_Register_WP_Admin_Settings

Register WP admin settings class.

Table of Contents

$object Contains the current class to pull settings from. WC_Register_WP_Admin_Settings
__construct() Hooks into the settings API and starts registering our settings. mixed
register_email_group() Register's all of our different notification emails as sub groups of email settings. array
register_email_settings() Registers all of the setting form fields for emails to each email type's group. array
register_page_group() Registers a setting group, based on admin page ID & label as parent group. array
register_page_settings() Registers settings to a specific group. array
register_setting() Register a setting into the format expected for the Settings REST API. array|bool

Properties

Methods

register_email_group()

Register's all of our different notification emails as sub groups of email settings.

public register_email_group( $groups : array ) : array
Parameters
$groups : array

Existing registered groups.

Tags
since
Return values
array

register_email_settings()

Registers all of the setting form fields for emails to each email type's group.

public register_email_settings( $settings : array ) : array
Parameters
$settings : array

Existing registered settings.

Tags
since
Return values
array

register_page_group()

Registers a setting group, based on admin page ID & label as parent group.

public register_page_group( $groups : array ) : array
Parameters
$groups : array

Array of previously registered groups.

Tags
since
Return values
array

register_page_settings()

Registers settings to a specific group.

public register_page_settings( $settings : array ) : array
Parameters
$settings : array

Existing registered settings.

Tags
since
Return values
array

register_setting()

Register a setting into the format expected for the Settings REST API.

public register_setting( $setting : array ) : array|bool
Parameters
$setting : array

Setting data.

Tags
since
Return values
array|bool
Back to the top