Restrict User Access

functions.php

Table of Contents

rua_get_user()  : RUA_User_Interface
rua_get_level()  : RUA_Level_Interface
rua_get_user_level()  : RUA_User_Level_Interface
rua_get_level_by_name()  : WP_Post|bool
rua_get_level_caps()  : array<string|int, mixed>

Functions

rua_get_user()

rua_get_user([WP_User|int|null $user = null ]) : RUA_User_Interface
Parameters
$user : WP_User|int|null = null

null or omit for current user

Tags
since
1.1

rua_get_level_by_name()

rua_get_level_by_name(string $name) : WP_Post|bool
Parameters
$name : string
Tags
since
0.9

rua_get_level_caps()

rua_get_level_caps(int $level_id[, bool $hierarchical = false ]) : array<string|int, mixed>
Parameters
$level_id : int
$hierarchical : bool = false
Tags
since
0.13

Search results