Names for a set of user capabilities.

learn more… | top users | synonyms (1)

3
votes
1answer
177 views

WordPress Capabilities: edit_user vs edit_users

The official documentation only mentions edit_users, but in the source I found many places are using edit_user, what is the difference? Are there any conventions for singular and plural capabilities? ...
4
votes
1answer
106 views

Allow authors to edit only certain users

I am trying to give my "authors" (who I have renamed "captains") the ability to access the user profile of their team members and only their team members. The teams are defined by a user-meta box ...
1
vote
1answer
137 views

map_meta_cap woes

I have created a custom post type and want it to behave like a page. Certain roles need to have access to it and not to posts or pages. So I created my custom post type with a capability-type and ...
1
vote
1answer
1k views

Reset default roles and capabilities

I've been having a difficult time adding custom post type capabilities to roles (Adding capabilities to default roles) and I suspect that my muddling around may have caused some problems. I also have ...
0
votes
2answers
121 views

Adding capabilities to default roles

I created a custom post type and gave it the following capabilities: add_action( 'init', 'create_team_page_post_type' ); function create_team_page_post_type() { $args = array( 'labels' => ...
0
votes
1answer
144 views

how to associate several authors to a custom post type

I have a "product" post type, to which i would like to associate several users according to their (custom) roles ( "designer", "producer"). They will be able to create (but not publish), edit and ...
0
votes
1answer
192 views

Can't manage to make translate_user_role() work

I've been looking into wpse archives to solve my problem but I can't manage to do such a thing. I built this code : $args = array('fields' => 'all_with_meta'); $users = get_users($args); foreach ...
0
votes
1answer
276 views

Better solution for managing media attachments with `wp_editor()`?

Currently using wp_editor(); on the front-end of my website as a content submission form. All posts submitted are set as a "Pending", which will later be published or deleted by an administrator. The ...
0
votes
1answer
350 views

User Roles: How to hide a plugin from showing in WP-Admin?

I would like to be able to hide a few plugins from showing in the WP-Admin for users who do not have a specific user role as I do not want those users to be able to edit the settings. Do I have to do ...
1
vote
2answers
30 views

Question regarding WP multisite feature

Hi I am developing a networking website using wp multisite feature. The website will have three different sites. buystuff.abc.com sellstuff.abc.com rentstuff.abc.com Now if "X" person register on ...
0
votes
1answer
118 views

how do I add role and capability after I create a new user

I have a simple requirement: 1. create a user 2. create a role for the user 3. add capability for the role First, create a new user $uid = wp_insert_user($userdata); Second & Third, create a ...
0
votes
4answers
4k views

what's the meaning of the field wp_capabilities in table wp_usermeta

I am new to wordpress, in table wp_usermeta I notice that we have a row meta_key meta_value wp_capabilities a:1:{s:13:"administrator";b:1;} First, what's the meaning of ...
1
vote
1answer
314 views

Remove wordpress author's capability to moderate comments on their own posts

WordPress authors have permission to edit others comments on their own post. How to disable this and still allow the authors to edit their published posts?
2
votes
1answer
49 views

Refine user taxonomy query based on role

I have a bunch of custom user taxonomies which I use to group users by, and then show these users on the front end with the following code (from taxonomy-{term}.php) <?php // Get each user from ...
0
votes
1answer
44 views

WPMU If MU site has no administrator, deactivate site

So I been tinkering with this thought. Working w/ WooCommerce Subscriptions - if the user is a recurring paid member, they can create and manage their own subsite. However, say the recurring payments ...
2
votes
1answer
779 views

Add a drop down list to comment form?

Can somebody help me to create a drop-down menu or (radio buttons) in Wordpress comment form, so that a new user could make a selection of their user roles (for example teachers + students) ? Output ...
0
votes
1answer
193 views

Custom Capabilities for CPT and Problem with current_user_can()

I have setup a CPT with custom capabilities. add_action('init', 'fac_product_posttype_init'); function fac_product_posttype_init(){ $product_labels = array( ... ); $caps = array( ...
0
votes
1answer
82 views

Saving a post, content filtering and user levels

I wrote a function to add and insert additional metadata to images. It looks like this: function add_image_orientation_fields_to_edit($form_fields, $post) { $current_value = ...
0
votes
1answer
80 views

Need to block user role from accessing bbPress all together

I've been looking at some options and I haven't seen a full solution to what I need. I need to block certain user_roles from accessing bbPress all together and from seeing the link to the page. Any ...
0
votes
1answer
55 views

Displaying content to search engines but via navigation only for registered users.

Displaying certain information depending on if a user is registered is quite easy as I have been using this code <?php if (current_user_can(‘subscriber’)) { ?> [content here] <?php } ...
0
votes
0answers
59 views

wp user role,username and email id is missing on wp admin panel

i am facing a totally strange problem on my wordpress blog. recently i have migrate my wp blog to a new server. but on the new server everything is working fine. but my author are not able to login. ...
2
votes
2answers
201 views

Redirect After Delete User in Backend

How do I redirect to a certain page after user deletion? For demonstration purpose, let's say I want to redirect to the dashboard on user subscriber deletion. This is what I have tried so far: ...
0
votes
2answers
88 views

Admin user roles/permissions

I have a user who I would like to able to publish new posts/pages, but I don't want them to have access to users. I may want to let them have access to specific plugins, but not others. Is there a ...
1
vote
2answers
165 views

Downgrade user from role that allows post creation

I am an admin of a multi-author blog. I am implementing a monitoring system which will require me to downgrade a user from an 'author' (this role allows them to make a custom post) back to the ...
4
votes
1answer
1k views

Only allow administrators and editors to access wp-admin

I am trying to restrict access to wp-admin so that only administrators and editors are allowed. At the moment I am using this function: function restrict_admin(){ //if not administrator, kill ...
0
votes
1answer
90 views

Enable comments for post when comments meta box removed

I've hit the issue described in '11: "Enable comments for post with comments meta box removed" and I'd like to ask for your help to adapt the mentioned there code to the current wordpress version. I ...
0
votes
1answer
41 views

Authors Ability to Review Post from Contributors

I am developing a CMS using WordPress. I have different user roles. I have different departments and I want users (Role of contributors) to post items that would be submitted for review by Users ...
0
votes
1answer
529 views

Roles and Capabilities in Custom Post Types

Is there a way to create one role with one capability and apply it to some of the custom post types? What I am doing right now is ending up with applying capabilities to all of the posts.. creating ...
0
votes
1answer
155 views

Remove Adminstrator Hyperlink from a user having role to add and see users

I have create a user role using Advance Access Manager wordpress plugin having role to see, add and remove users name as site_admin. When user login with his Id he is able to see the adminstrator and ...
0
votes
1answer
55 views

Advanced search: roles and multiple taxonomies

I have a site with custom roles, and custom taxonomies. I'm making the advanced search, where custom posts can be filtered by roles and taxonomies. To accomplish this, I'm using my own custom SQL ...
1
vote
1answer
132 views

Add user settings to specific roles

Is it possible to do this? I already know about get current_user_can(), which does not work like I need. I'd like to be able to use an array if there are multiple roles. // Check roles to only add ...
0
votes
3answers
290 views

Restrict custom post type view by user role

I've created a custom post type and created a couple of custom user roles and want to be able to restrict the view of the post type based on the specific roles. Is there a straightforward way to ...
0
votes
0answers
115 views

Capability to read user's own draft post of CPT

I've got a custom role called 'Gym' and custom post type (CPT) called 'Story'. Every Gym user can create a draft of a story and view their own story drafts. My 'Story' CPT have got the following ...
0
votes
1answer
123 views

Get Authors Role

I am using the admin role and 2 custom roles. On the author.php i want to be able to place the role of that user. I am using this to pull the role out in text $curauth = ...
2
votes
1answer
467 views

How can I have different groups of editors only allowed to edit certain parent+subpages?

I've tried a bunch of different plugins, including Role Scoper, Advanced Access Manager, User Account Manager and more, to accomplish this but can't seem to get it working right. Basically, the ...
6
votes
1answer
1k views

Allow Editors to edit pending posts but not draft ones

I have a large number of users with Editor Capabilities that help to go through the post submissions. This is my current setup for this role: As you can see, they are allowed to edit_posts and ...
0
votes
0answers
47 views

How to make a plugin appear only to a certain role of user?

I'm using a plugin called "Team Result", to create team results and things like that. It appeared on the dashboard for admin(me). As you can see in this print ...
0
votes
0answers
24 views

How can I display all the blogs where this user is editor in Wordpress Multisite? [duplicate]

Very similar question with correct answer I guess my question is simple, I run multisite and on some blog I want to display <> thing The link I posted does not work for me, but it is marked as ...
1
vote
0answers
60 views

Purpose of Adding Capability to Role But Not Grant?

I am attempting to create a custom role upon activation of my plugin. Along with that role, I wanted to add new capability to that role to access later. Now, after reading the Codex, I am totally ...
0
votes
1answer
69 views

How can I change my assigned user role in WordPress 3.5.1?

My current user role is "Administrator". I'd like to change my role to "Editor" (through out database field). I read Database_Description, but it did not help.
2
votes
1answer
481 views

Modify custom Users Manage page

I'm trying to create a submenu page under 'Users' which is like the 'All Users' page but for listing users of specific roles only. Let's just call this submenu page 'Customer'. So far I managed to ...
2
votes
2answers
294 views

What is the difference between “create_users” and “add_users” capabilities?

The codex lists both create_users and add_users under roles and capabilities. Does anyone know what is the difference between these two?
6
votes
2answers
621 views

How to prevent a post from being deleted?

For auditing issue, I only want a post can be trashed, but not deleted - for all users. So I have a plugin like add_action('before_delete_post', function($id) { wp_die(0); }); But ...
1
vote
1answer
327 views

How to sync roles across Multisite?

How to synchronize roles on all sites of the Multisite Network if roles were changed on main site?
1
vote
1answer
3k views

Restrict admin access to certain pages for certain users

As the title says, I'd like to restrict back-end access to certain pages for certain users. While doing a site with 45-50 pages, I realised it would be a much better user experience if the Page menu ...
1
vote
1answer
163 views

Display User Role Next To Comment

I've search around but I can't seem to find exactly what I'm looking for and for the first time I don't even know where to start. How do I display the user role (Admin, Editor, Author Contributor, ...
0
votes
1answer
223 views

Custom page only editable by one user

I want to allow a user only to see and edit one single page in the backend. Means: user 1 can edit and see page #20 user 2 can edit and see page #21 The other pages, posts, settings can not be ...
0
votes
1answer
71 views

Authors can edit all posts, except when an owner is specified?

I'm trying to do as follows: All users can edit all posts from other authors (sort of wiki) Some posts have an "owner". When owner is specified only this user can edit the post. Do you have any ...
0
votes
2answers
185 views

display specific sidebar for each role

Does someone know if it's possible to display a specific sidebar per user-role ? (only accessible if the user is logged as the specific role related to the specific sidebar )? What I want is to have ...
1
vote
1answer
51 views

Adding Custom Capabilites

So, I'm not sure if this is possible, but is it possible to add custom Capabilities? So, I've written a group message application, that ties in with Wordpress. I only want certain members (set via ...