Settings_Controller implements Registerable
Handles display of the settings pages.
Tags
Interfaces, Classes and Traits
- Registerable
Table of Contents
- MENU_SLUG = 'wpf-settings-general'
- OPTION_GROUP = 'wc_product_filter_pro_settings'
- TAB_ID = 'settings'
- $id : string
- The ID of the tab.
- $license_setting : License_Setting
- The license setting.
- $plugin : Plugin
- The plugin.
- $title : string
- The title of the tab.
- __construct() : mixed
- Get things started.
- display_document_data_description() : void
- Displays the description for the first settings section.
- display_table_design_description() : void
- Displays the description for the design settings section.
- get_behavior_settings() : array<string|int, mixed>
- Get behavior related settings.
- get_button_settings() : array<string|int, mixed>
- Get button related settings.
- get_design_settings() : array<string|int, mixed>
- Get design related settings.
- get_id() : string
- Get the tab ID.
- get_title() : string
- Get the tab title.
- get_uninstall_settings() : array<string|int, mixed>
- Get uninstall related settings.
- get_visibility_settings() : array<string|int, mixed>
- Get visibility related settings.
- register() : void
- Register hooks.
- register_settings() : void
- Register the settings.
- save_options() : array<string|int, mixed>
- Save the options.
Constants
MENU_SLUG
public
mixed
MENU_SLUG
= 'wpf-settings-general'
OPTION_GROUP
public
mixed
OPTION_GROUP
= 'wc_product_filter_pro_settings'
TAB_ID
public
mixed
TAB_ID
= 'settings'
Properties
$id
The ID of the tab.
private
string
$id
$license_setting
The license setting.
private
License_Setting
$license_setting
$plugin
The plugin.
private
Plugin
$plugin
$title
The title of the tab.
private
string
$title
Methods
__construct()
Get things started.
public
__construct(Plugin $plugin) : mixed
Parameters
- $plugin : Plugin
-
The plugin.
Return values
mixed —display_document_data_description()
Displays the description for the first settings section.
public
display_document_data_description() : void
Return values
void —display_table_design_description()
Displays the description for the design settings section.
public
display_table_design_description() : void
Return values
void —get_behavior_settings()
Get behavior related settings.
public
static get_behavior_settings() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_button_settings()
Get button related settings.
public
static get_button_settings() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_design_settings()
Get design related settings.
public
static get_design_settings() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_id()
Get the tab ID.
public
get_id() : string
Return values
string —get_title()
Get the tab title.
public
get_title() : string
Return values
string —get_uninstall_settings()
Get uninstall related settings.
public
static get_uninstall_settings() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_visibility_settings()
Get visibility related settings.
public
static get_visibility_settings() : array<string|int, mixed>
Return values
array<string|int, mixed> —register()
Register hooks.
public
register() : void
Return values
void —register_settings()
Register the settings.
public
register_settings() : void
Return values
void —save_options()
Save the options.
public
save_options(array<string|int, mixed> $options) : array<string|int, mixed>
Adjust visibility settings if configuration is wrong.
Parameters
- $options : array<string|int, mixed>