Custom_Settings_Fields implements Registerable
Additional field types for WooCommerce settings pages.
Tags
Interfaces, Classes and Traits
- Registerable
- An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
Table of Contents
- ALL_FIELDS = ['hidden', 'color_picker', 'color_size', 'help_note', 'multi_text', 'settings_start', 'settings_end', 'checkbox_tooltip', 'image_size']
- $plugin : Plugin
- The plugin object.
- __callStatic() : mixed
- Handle back-compat with the old static methods.
- __construct() : mixed
- Constructor.
- checkbox_tooltip_field() : mixed
- color_picker_field() : mixed
- color_size_field() : mixed
- help_note_field() : mixed
- hidden_field() : mixed
- image_size_field() : mixed
- load_scripts() : mixed
- multi_text_field() : mixed
- register() : void
- Register this object with WordPress.
- register_scripts() : mixed
- sanitize_checkbox_tooltip_field() : mixed
- settings_end_field() : mixed
- settings_start_field() : mixed
Constants
ALL_FIELDS
public
mixed
ALL_FIELDS
= ['hidden', 'color_picker', 'color_size', 'help_note', 'multi_text', 'settings_start', 'settings_end', 'checkbox_tooltip', 'image_size']
Properties
$plugin
The plugin object.
private
Plugin
$plugin
Methods
__callStatic()
Handle back-compat with the old static methods.
public
static __callStatic(mixed $name, mixed $args) : mixed
Parameters
- $name : mixed
- $args : mixed
Return values
mixed —__construct()
Constructor.
public
__construct(Plugin $plugin) : mixed
Parameters
- $plugin : Plugin
-
The plugin object.
Return values
mixed —checkbox_tooltip_field()
public
checkbox_tooltip_field(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —color_picker_field()
public
color_picker_field(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —color_size_field()
public
color_size_field(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —help_note_field()
public
help_note_field(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —hidden_field()
public
hidden_field(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —image_size_field()
public
image_size_field(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —load_scripts()
public
load_scripts(mixed $field) : mixed
Parameters
- $field : mixed
Return values
mixed —multi_text_field()
public
multi_text_field(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —register()
Register this object with WordPress.
public
register() : void
Return values
void —register_scripts()
public
register_scripts() : mixed
Return values
mixed —sanitize_checkbox_tooltip_field()
public
sanitize_checkbox_tooltip_field(mixed $value, mixed $option, mixed $raw_value) : mixed
Parameters
- $value : mixed
- $option : mixed
- $raw_value : mixed
Return values
mixed —settings_end_field()
public
settings_end_field(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —settings_start_field()
public
settings_start_field(mixed $value) : mixed
Parameters
- $value : mixed