Restrict User Access

Deprecated

Table of Contents

interfaces/user.php
api/deprecated.php

user.php

Line Element Reason
91 RUA_User_Interface::get_level_start() use level_memberships()->get($level_id)->get_start()
100 RUA_User_Interface::get_level_expiry() use level_memberships()->get($level_id)->get_expiry()
109 RUA_User_Interface::is_level_expired() use !level_memberships()->get($level_id)->is_active()

deprecated.php

Line Element Reason
15 rua_get_user_roles() use get_userdata($user_id)->roles
31 rua_get_user_levels() use rua_get_user($user_id)->get_level_ids()
49 rua_get_user_level_start() use rua_get_user($user_id)->level_memberships()->get($level_id)->get_start()
66 rua_get_user_level_expiry() use rua_get_user($user_id)->level_memberships()->get($level_id)->get_expiry()
83 rua_is_user_level_expired() use !rua_get_user($user_id)->level_memberships()->get($level_id)->is_active()
100 rua_has_user_level() use rua_get_user($user_id)->has_level($level_id)
114 rua_add_user_level() use rua_get_user($user_id)->add_level($level_id)
128 rua_remove_user_level() use rua_get_user($user_id)->remove_level($level_id)

Search results