Settings_Page implements Registerable

Provides functions for the plugin settings page in the WordPress admin.

Settings are registered under: WooCommerce -> Settings -> Products -> Express shop page.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable

Table of Contents

$plugin  : mixed
__construct()  : mixed
Constructor - set up plugin instance
add_section()  : mixed
Add section to the settings page
add_settings()  : array<string|int, mixed>
Add settings to the settings page
register()  : mixed
Register the settings page.

Properties

Methods

__construct()

Constructor - set up plugin instance

public __construct(Licensed_Plugin $plugin) : mixed
Parameters
$plugin : Licensed_Plugin

The plugin instance

Return values
mixed

add_section()

Add section to the settings page

public add_section(array<string|int, mixed> $sections) : mixed
Parameters
$sections : array<string|int, mixed>

The existing sections

Return values
mixed

add_settings()

Add settings to the settings page

public add_settings(array<string|int, mixed> $settings, string $current_section) : array<string|int, mixed>
Parameters
$settings : array<string|int, mixed>

The existing settings

$current_section : string

The current section

Return values
array<string|int, mixed>

The settings

register()

Register the settings page.

public register() : mixed
Return values
mixed

Search results