\Barn2\Plugin\WC_Protected_Categories\AdminSettings_Page

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

Summary

Methods
Properties
Constants
__construct()
register()
add_section()
add_settings()
save_category_login_page()
No public properties found
SETTINGS_SECTION
No protected methods found
No protected properties found
N/A
No private methods found
$plugin
N/A

Constants

SETTINGS_SECTION

SETTINGS_SECTION

Properties

$plugin

$plugin :

Type

Methods

__construct()

__construct(\Barn2\WPC_Lib\Plugin\Licensed_Plugin  $plugin)

Parameters

\Barn2\WPC_Lib\Plugin\Licensed_Plugin $plugin

register()

register()

add_section()

add_section(  $sections)

Parameters

$sections

add_settings()

add_settings(  $settings,  $current_section)

Parameters

$settings
$current_section

save_category_login_page()

save_category_login_page(string  $option,mixed  $old_value,mixed  $value)

Handles saving the category login page option. Automatically adds the login shortcode to the selected page.

Parameters

string $option

The option being saved

mixed $old_value

The old value

mixed $value

The new option value