LLMS_User_Permissions::user_can_manage_user( int $user_id, int $edit_id )
Determine if a user can manage another user.
Description Description
Run on user_has_cap
filters for the edit_users
and delete_users
capabilities.
Parameters Parameters
- $user_id
-
(Required) WP User ID of the user requesting to perform the action.
- $edit_id
-
(Required) WP User ID of the user the action will be performed on.
Return Return
(bool|null) Returns true if the user performs the action, false if it can't, and null for core user roles which are skipped.
Source Source
File: includes/class.llms.user.permissions.php
Changelog Changelog
Version | Description |
---|---|
3.41.0 | Better handling of users with multiple roles. |
3.34.0 | Introduced. |