ClarksonCore

Clarkson_Role
in package

Object oriented wrapper for WP_Role objects.

Table of Contents

__construct()  : mixed
Clarkson_Role constructor.
get()  : Clarkson_Role|null
Get Clarkson Role object by role name.
get_by_name()  : Clarkson_Role|null
Get Clarkson Role object by role name.
get_many()  : array<string|int, Clarkson_Role>
Get all available Clarkson Role objects
get_role()  : WP_Role
Get the WordPress WP_Role object.

Methods

__construct()

Clarkson_Role constructor.

public __construct(WP_Role $role) : mixed
Parameters
$role : WP_Role
Return values
mixed

get_role()

Get the WordPress WP_Role object.

public get_role() : WP_Role
Return values
WP_Role

        

Search results