Search Results
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 |
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 …
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 …
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 …