Change WordPress user roles and capabilities › Forums › How to or FAQ › Custom User Edit Page › Reply To: Custom User Edit Page
07/06/2017 at 07:53
#3836
Vladimir
Keymaster
if (!$this->lib->is_right_admin_path()
$this->lib object is not defined inside your function. So you get a PHP fatal error here and code is not executed further.
You have to use it this way:
$lib = URE_Lib_Pro::get_instance();
if (!$lib->is_right_admin_path('user.php') {