Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 43098

Names for a set of user capabilities.

0 votes
1 answer
727 views

Restrict access to options-*.php pages

I have a custom role named manager with manage_options and read capabilities , i want to restrict him not to access Settings menu, you may say remove manage_options capability but that's not the case …
bravokeyl's user avatar
  • 3,379
4 votes

Check if user is admin by user ID

You can use get_userdata() or get_user_by() by passing user id yo can get user object. From which you get role. $user = get_userdata( $user_id ); if(!empty( $user ) && $user){ $user->roles // this …
bravokeyl's user avatar
  • 3,379
20 votes
Accepted

Remove update nags for non-admins

In wp-admin/includes/update.php file if ( current_user_can('update_core') ) $msg = sprintf( __('An automated WordPress update has failed to complete - <a href="%s">please attempt the update a …
bravokeyl's user avatar
  • 3,379