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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 answers only user 27722

WordPress uses a concept of Roles, designed to give the site owner the ability to control what users can and cannot do within the site. Each role is allowed to perform a set of tasks called Capabilities.

1
vote
As far as I know, you can not (easily) set up a custom capability for a certain post/page ID. What is described in the Codex, are the so-called meta capabilities (a set of predefined capabilities
answered Apr 15 '13 by tfrommen
1
vote
I did not test the following code, but it should do what you want (or point you in the right direction, at least). function captains_user_row_actions($actions, $user) { // remove the ability to e …
answered Jul 5 '13 by tfrommen
1
vote
You can get_post(), check if the get_current_user_id equals the post_author information, and then act upon that... if ('edit.php' === $GLOBALS['pagenow']) { if ( current_user_can('adminis …
answered Dec 11 '13 by tfrommen
1
vote
I just happened to provide a short example of setting up a custom role capability (exaplanation and code). In your case, however, you want to add the capability to particular users - not roles. The f …
answered Mar 14 '13 by tfrommen
17
votes
= get_editable_roles(); foreach ($GLOBALS['wp_roles']->role_objects as $key => $role) { if (isset($roles[$key]) && $role->has_cap('THE_NEW_CAP')) { $role->remove_cap('THE_NEW_CAP'); } } } } Note: Please do not use upper case capabilities. This is just for readability. …
answered Mar 14 '13 by tfrommen