\Barn2\Plugin\WC_Lead_Time\AdminSettings_Page

Handles the WooCommerce settings page.

Summary

Methods
Properties
Constants
__construct()
register()
register_settings_section()
get_settings()
sanitize_text_color()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$id
$label
$plugin
$license
N/A

Properties

$id

$id :

Type

$label

$label :

Type

$plugin

$plugin :

Type

$license

$license :

Type

Methods

register()

register()

Register hooks and filters

register_settings_section()

register_settings_section(array  $sections): array

Register the settings section.

Parameters

array $sections

Returns

array —

$sections

get_settings()

get_settings(array  $settings,string  $current_section): array

Register section settings

Parameters

array $settings
string $current_section

Returns

array —

$settings

sanitize_text_color()

sanitize_text_color(string  $value): string

Handle empty color value and set back to default.

Parameters

string $value

Returns

string —

$value