Settings implements Registerable, Service

Registrations of the EDD settings page.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Service

Table of Contents

$license_setting  : License_Setting
The license setting object.
$plugin  : Licensed_Plugin
The licensed plugin object.
__construct()  : mixed
Constructor
add_promo()  : mixed
Outputs the plugin promo
add_settings()  : array<string|int, mixed>
Register the VAT settings.
add_settings_section()  : array<string|int, mixed>
Register the VAT settings section.
custom_settings_header()  : mixed
Output a customised settings header
register()  : mixed
Register hooks and filters
save_license_key()  : array<string|int, mixed>
Save the license key when the plugin settings are saved.
get_help_links()  : string
Gets the Barn2 Help links

Properties

$license_setting

The license setting object.

private License_Setting $license_setting

$plugin

The licensed plugin object.

private Licensed_Plugin $plugin

Methods

__construct()

Constructor

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

add_promo()

Outputs the plugin promo

public add_promo() : mixed
Return values
mixed

add_settings()

Register the VAT settings.

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

add_settings_section()

Register the VAT settings section.

public add_settings_section(array<string|int, mixed> $sections) : array<string|int, mixed>
Parameters
$sections : array<string|int, mixed>
Return values
array<string|int, mixed>

custom_settings_header()

Output a customised settings header

public custom_settings_header() : mixed
Return values
mixed

register()

Register hooks and filters

public register() : mixed
Return values
mixed

save_license_key()

Save the license key when the plugin settings are saved.

public save_license_key(array<string|int, mixed> $input) : array<string|int, mixed>
Parameters
$input : array<string|int, mixed>

The EDD settings to save (will not include the license key).

Return values
array<string|int, mixed>

The sanitized settings.

Gets the Barn2 Help links

private get_help_links() : string
Return values
string

Search results