WC_Settings_Products
extends WC_Settings_Page
in package
WC_Settings_Products.
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.
- 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
$id
Setting page id.
protected
string
$id
= ''
$label
Setting page label.
protected
string
$label
= ''
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixedadd_settings_page()
Add this page to settings.
public
add_settings_page(array $pages) : mixed
Parameters
- $pages : array
Return values
mixedget_id()
Get settings page ID.
public
get_id() : string
Tags
Return values
stringget_label()
Get settings page label.
public
get_label() : string
Tags
Return values
stringget_sections()
Get sections.
public
get_sections() : array
Return values
arrayget_settings()
Get settings array.
public
get_settings([string $current_section = '' ]) : array
Parameters
- $current_section : string = ''
-
Current section name.
Return values
arrayoutput()
Output the settings.
public
output() : mixed
Return values
mixedoutput_sections()
Output sections.
public
output_sections() : mixed
Return values
mixedsave()
Save settings.
public
save() : mixed