Settings_Page implements Service, Registerable
Provides functions for the plugin settings page in the WordPress admin. Settings are under the WooCommerce -> Products tab.
Tags
Interfaces, Classes and Traits
- Service
- Registerable
Table of Contents
- SETTINGS_SECTION = 'protected-cats'
- $plugin : mixed
- __construct() : mixed
- add_section() : mixed
- add_settings() : mixed
- register() : mixed
- save_category_login_page() : mixed
- Handles saving the category login page option. Automatically adds the login shortcode to the selected page.
Constants
SETTINGS_SECTION
public
mixed
SETTINGS_SECTION
= 'protected-cats'
Properties
$plugin
private
mixed
$plugin
Methods
__construct()
public
__construct(Licensed_Plugin $plugin) : mixed
Parameters
- $plugin : Licensed_Plugin
Return values
mixed —add_section()
public
add_section(mixed $sections) : mixed
Parameters
- $sections : mixed
Return values
mixed —add_settings()
public
add_settings(mixed $settings, mixed $current_section) : mixed
Parameters
- $settings : mixed
- $current_section : mixed
Return values
mixed —register()
public
register() : mixed
Return values
mixed —save_category_login_page()
Handles saving the category login page option. Automatically adds the login shortcode to the selected page.
public
save_category_login_page(string $option, mixed $old_value, mixed $value) : mixed
Parameters
- $option : string
-
The option being saved
- $old_value : mixed
-
The old value
- $value : mixed
-
The new option value