Definition:
function user_can_edit_user($user_id, $other_user) {}
Can user can edit other user.
Parameters
- int $user_id
- int $other_user
Source code
function user_can_edit_user($user_id, $other_user) { _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); $user = get_userdata($user_id); $other = get_userdata($other_user); if ( $user->user_level > $other->user_level || $user->user_level > 8 || $user->ID == $other->ID ) return true; else return false; }
3293
No comments yet... Be the first to leave a reply!