wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
user_can_edit_user is deprecated since version 2.0.0!
Alternative: current_user_can()
Alternative: current_user_can()
user_can_edit_user › WordPress Function
Seit1.5.0
Veraltet2.0.0
› user_can_edit_user ( $user_id, $other_user )
Parameter: (2) |
|
Siehe: | |
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Can user can edit other user.
Ähnliche Funktionen: user_can_edit_post, user_can_edit_post_date, user_can_richedit, user_can_edit_post_comments, user_can_for_site
Quellcode
function user_can_edit_user($user_id, $other_user) { _deprecated_function( __FUNCTION__, '2.0.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; }