user_can_edit_user [ WordPress Function ]
user_can_edit_user ( $user_id, $other_user )
| Parameters: |
|
| See: | |
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: user_can_edit_post, user_can_edit_post_date, user_can_richedit, user_can_edit_post_comments, edit_user
Can user can edit other user.
Source
<?php
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;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- WordPress › Support » author permissions
Posted 6 years ago #. You also need to edit the functions: user_can_edit_user() in the same file from: function user_can_edit_user($user_id, $other_user) { ...
wordpress.org - Skipping one rails action in CanCan - Stack Overflow
can :create, User can :update, User can :edit, User can :modify, User. Next I tried creating an entry in my ability.rb can :do_this_action, User ...
stackoverflow.com - wp_get_post_cats (WordPress Function) - WPSeek.com
user_can_edit_user (use current_user_can); user_can_set_post_date (use current_user_can); wp_get_linksbyname; wp_get_post_cats; wp_list_cats (use .
wpseek.com - Noble Sage Art Gallery Terms and Conditions
Since most web browsers automatically accept cookies, User can edit User's browser options to block them if User does not want the Website to use cookies to ...
www.thenoblesage.com