Util

Role Utilities

Tags
author

Barn2 Plugins [email protected]

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

get_roles()  : array<string|int, mixed>
Gets all roles on the site and adds a guest role
is_integer()  : bool
Determines if a value is like an integer
user_has_rules()  : bool
Determine if the user has rules applied

Methods

get_roles()

Gets all roles on the site and adds a guest role

public static get_roles() : array<string|int, mixed>
Return values
array<string|int, mixed>

is_integer()

Determines if a value is like an integer

public static is_integer(mixed $input) : bool
Parameters
$input : mixed
Return values
bool

user_has_rules()

Determine if the user has rules applied

public static user_has_rules() : bool
Return values
bool

Search results