Roles implements Registerable, Standard_Service

Roles Setting Tab

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

$id  : mixed
__construct()  : mixed
Constructor.
adjust_admin_description()  : string
Adjust the admin description if the Discount Manager plugin is not installed.
get_id()  : string
Return the ID of the settings tab.
get_settings()  : array<string|int, mixed>
Retrieves the settings.
register()  : mixed
{@inheritdoc}
setting_screen()  : mixed
Output the correct setting screen (Role List or Role Edit)
delete_role()  : mixed
Remove role
role_edit_screen()  : mixed
Role Edit Screen
role_manage_screen()  : mixed
Wholesale roles list screen

Properties

Methods

__construct()

Constructor.

public __construct(string $id) : mixed
Parameters
$id : string
Tags
Return values
mixed

adjust_admin_description()

Adjust the admin description if the Discount Manager plugin is not installed.

public adjust_admin_description(string $description) : string
Parameters
$description : string

The description text.

Tags
Return values
string

The filtered description text.

get_id()

Return the ID of the settings tab.

public get_id() : string
Tags
Return values
string

get_settings()

Retrieves the settings.

public get_settings() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

setting_screen()

Output the correct setting screen (Role List or Role Edit)

public setting_screen() : mixed
Tags
Return values
mixed

delete_role()

Remove role

private delete_role(string $role_name) : mixed
Parameters
$role_name : string
Tags
Return values
mixed

role_edit_screen()

Role Edit Screen

private role_edit_screen(string $role_name) : mixed
Parameters
$role_name : string
Tags
Return values
mixed

role_manage_screen()

Wholesale roles list screen

private role_manage_screen() : mixed
Tags
Return values
mixed

Search results