Settings_Page extends WC_Settings_Page implements Registerable, Standard_Service Uses Service_Container

This class handles the plugin settings page for WooCommerce Wholesale Pro.

Tags
author

Barn2 Media info@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

$plugin  : mixed
__construct()  : mixed
Constructor.
add_services()  : mixed
{@inheritdoc}
get_sections()  : array<string|int, mixed>
Get sections.
get_settings()  : array<string|int, mixed>
Return the settings for the requested tab
output()  : mixed
Output the settings
register()  : mixed
{@inheritdoc}
register_settings_tab()  : mixed
Register the settings tab.
save()  : mixed
Save settings

Properties

Methods

__construct()

Constructor.

public __construct(Plugin $plugin) : mixed
Parameters
$plugin : Plugin
Tags
Return values
mixed

add_services()

{@inheritdoc}

public add_services() : mixed
Tags
Return values
mixed

get_sections()

Get sections.

public get_sections() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

get_settings()

Return the settings for the requested tab

public get_settings([string $current_section = '' ]) : array<string|int, mixed>
Parameters
$current_section : string = ''
Tags
Return values
array<string|int, mixed>

$settings

output()

Output the settings

public output() : mixed
Tags
Return values
mixed

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

register_settings_tab()

Register the settings tab.

public register_settings_tab(mixed $settings_tabs) : mixed
Parameters
$settings_tabs : mixed
Tags
Return values
mixed

save()

Save settings

public save() : mixed
Tags
Return values
mixed

Search results