WooCommerce Code Reference

WC_Settings_General extends WC_Settings_Page
in package

WC_Admin_Settings_General.

Table of Contents

$id  : string
Setting page id.
$label  : string
Setting page label.
__construct()  : mixed
Constructor.
add_settings_page()  : mixed
Add this page to settings.
color_picker()  : mixed
Output a color picker input box.
get_id()  : string
Get settings page ID.
get_label()  : string
Get settings page label.
get_sections()  : array
Get sections.
get_settings()  : array
Get settings array.
output()  : mixed
Output the settings.
output_sections()  : mixed
Output sections.
save()  : mixed
Save settings.

Properties

Methods

color_picker()

Output a color picker input box.

public color_picker(mixed $name, string $id, mixed $value[, string $desc = '' ]) : mixed
Parameters
$name : mixed

Name of input.

$id : string

ID of input.

$value : mixed

Value of input.

$desc : string = ''

(default: '') Description for input.

Return values
mixed