Settings_Page implements Service, Registerable

Provides functions for the plugin settings page in the WordPress admin. Settings are under the WooCommerce -> Products tab.

Tags
author

Barn2 Plugins info@barn2.co.uk

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Service
Marker interface to denote a service.
Registerable
An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().

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

Methods

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

Return values
mixed

Search results