Names for a set of user capabilities.

learn more… | top users | synonyms (1)

1
vote
1answer
1k views

Define new user capability for custom post types?

If I create a custom post type and want to create custom capabilities for that, how do I do this? For example, I want to let my Editors to edit and create and delete posts and pages, but not the ...
5
votes
1answer
3k views

Change Author Base Slug for different Roles

is it possible to change the author base slug in dependency of the role? For example, authors get example.com/ninja/%username% and subscribers get example.com/trainee/%username% ? I am thinking of ...
0
votes
2answers
377 views

How do I “trash” a custom post type post while logged in as Admin

I am using the members plugin and have a custom post type of "listing" When I navigate to listings in the backend, I can edit. quickedit, and view. There is no option to trash. I am logged in as ...
3
votes
1answer
1k views

Roles at registration (classipress)

I have a classipress site and want to have the user choose upon registering with the site if they are a teacher, or student. These will be different roles. I have been trying to get roles at ...
3
votes
4answers
974 views

How do I allow a specific Role in Wordpress 3+ to only see certain plugins?

I am familiar with user roles and how to change them within Wordpress 3+, My problem is when I disable a user from being able to view plugins, all plugins are disabled from view. How do I let them see ...
0
votes
1answer
544 views

Paypal API and Wordpress

Hi does anybody know where i can find a PayPal API tutorial that can help to point me in the right direction, What im needing is something that when payment is verified by paypal it bounces through ...
4
votes
1answer
6k views

Separate registration and login for different roles

I've set 2 new roles for my site using the "Members" plugin - "sellers" and "buyers". Each role should have its own registration page and login. A visitor can register as both a buyer and a seller ...
1
vote
3answers
2k views

Code needed to only show users own posts in a multi-user account

I am using WP3 and want to starting adding users (many users to a single blog) but when I give a new user an account, they can see all the posts in the admin including scheduled, drafts, pending ...
0
votes
1answer
1k views

Menu page with minimum capability as 'Subscriber' doesn't allow 'Admin' to access it?

I've added a separate menu page (an object page) with minimum access level required as 'Subscriber'. I'm doing this because I'm registering new users and they'll be 'Subscribers' with an extra ...
0
votes
1answer
737 views

How can I get the last posts by user role?

I have a custom post type ("News"), and a custum user role ("Friends"). How can I get the last "News" written by "Friends" ?
0
votes
2answers
1k views

User capability of create page/new page

I am working with the Role and Capabilities API for the first time today and making use of the the excellent Members plugin. Having tinkered around for some time I notice that the "edit pages" ...
8
votes
3answers
14k views

Allow member to have access to custom post type only. Permission to only edit their own posts

OK I'm looking for the best way to attack this. I'm very comfortable with PHP and making custom post types with custom meta fields in WordPress. Here is what I'm looking at doing: User registers ...
2
votes
5answers
366 views

How to add another user to this remove_menu function?

Pretty self-explanatory. How does one add another user to this function for functions.php, i.e., user2, who will be shown different menu items than user1? I tried adding another ...
1
vote
3answers
222 views

User Roles Not Sticking

I have added a custom user role of super_poster, basically they make 20 posts and once they hit $postlimit get auto-moved back down to contributer level, the moving down and post counting works ok, my ...
2
votes
7answers
8k views

Display navigation menu item conditionally based on user capabilities

I have one "branch" of my main site's navigation tree that should only be accessible to a set of registered, logged-in users. I understand how to query a user's role and capabilities. This question is ...
3
votes
1answer
461 views

Return ID of authors who have at least one post

I found a great piece of code here that returns the ID's of users by role. What I would like to do is modify it so it only returns the ID's of the users who have at least one post. I have tried to ...
2
votes
1answer
704 views

Allow contributors to add categories, but not delete

I used a plugin called "User Role Editor" to allow contributors to add categories, but it also lets them delete categories. Any suggestions?
2
votes
2answers
1k views

What action should I hook into when adding roles and capabilities?

I'm going to be using add_role() and $role->add_cap() to set up a new custom role and attach a new capability to existing roles. I'm wondering where the best place to do this is? Obviously I can do ...
0
votes
1answer
420 views

Force modified contributor role to be re-approved on edit?

I gave the Contributor role edit_published_posts capability. Contributor submits a post, Admin publishes it. Now Contributor can edit it without approval. Is there a way to force it to be re-approved ...
5
votes
2answers
8k views

How to add a Capability to a User Role?

I am managing a Wordpress network and would like to add the unfiltered_html user capability to the already predefined user role of Admin. In a standard installation of Wordpress the Admin account ...
0
votes
1answer
683 views

How can I disable the update notice for non-administrators?

As I already told, I'm setting up a Blog for a friend. Next to not being him an administrator but an editor that can make changes to theme options) I have an additional question. I don't want him to ...
9
votes
4answers
7k views

How can I allow the Editor Role to change Theme Settings?

I've just setup a new Blog for a friend and thought it's better to not give him Administrator Access right away as a pre-caution. I created a new user as Editor therefore. But then I saw that this ...
4
votes
2answers
3k views

Help - Why my roles are not showing? Multi-site/Network

My network is showing roles in some sites and not in others. For some reason that I can't explain, when I add a new user, I have no role to choose from on the drop down box of a sub-site in my ...
2
votes
3answers
3k views

Change default admin page for specific role(s)

I was wondering if anyone knew of a plugin or a way programmatically to change the the default admin page for a specific user/role? I have a master panel page for my plugin currently setup with ...
7
votes
5answers
4k views

Remove Ability for Other Users to View Administrator in User List?

(Moderator's note: Original title was "Remove Admin from User Menu") I have created a client administrator role which is essentially an Editor with ability to add/remove users. The article "Editor ...
1
vote
1answer
324 views

Filter list of rules based on a capability

I'm trying to get a list of roles and filter them by a specific capability (custom). I've ran across this post, but I'd like to filter the roles by whether they're capable to, say, edit_post. -Zack
0
votes
2answers
857 views

create new user role for reader

is there a way to add a new user role? I need two kind of readers: can read all private posts can read just private posts from a specific category. Subscriber as described here could be fair ...
1
vote
1answer
698 views

Theme option editing capability problems

I've setup some theme options using this helpful guide as a template. I want to give my editors the option to update these theme options, so I granted the edit_theme_options capability as mentioned ...
2
votes
4answers
811 views

Tagging users in Wordpress

I have a community blog at thelazy.info . I want to tag users based on their colleges and assign a role known as "College Owner" which will have permissions to edit users belonging to his colleges. ...
1
vote
1answer
301 views

similar to Editor can create any new user except administrator

I have set up a wp multi-site with custom roles. One of the roles can add users. I need a solution to only show two roles available to the limited role on add user and leave all user types available ...
1
vote
1answer
430 views

Capability for allowing user to post own comments without moderation

I work at a radio station that has several WP user roles -- for simplicity sake, let's say Admin, Programmer, Subscriber, in decreasing order of ability. Currently, Admin users need to approve ...
3
votes
2answers
2k views

How can I hide a category from Contributors in the edit/add new post screen?

I have a situation where I need to hide a specific category and it's children from users who are logged in as Contributors. I don't want them to see this category and it's children in the categories ...
2
votes
2answers
2k views

Conditional Tags for Membership Levels when using Wishlist Member Plugin?

I am currently using a plug-in called Wishlist member. It allows you to create membership levels in WordPress. I want to be able to display different content on a page depending on the membership ...
3
votes
1answer
2k views

How to check user role without using current_user_can()

I am filtering the map_meta_cap() function, which is called from $user->has_cap (which is called from current_user_can()). I only want my filter to execute if the current user is an administrator, so ...
1
vote
3answers
277 views

Using author_can() on custom post types in WordPress

I'm trying to conditionally display some content in a theme using custom roles and capabilities. First, I define a custom role: add_role('free_vendor', 'Free Vendor Listing', array('read', ...
0
votes
2answers
323 views

How to determine which capability to use?

For example, I want to use add_menu_page() function to add a menu item to the dashboard. To control which users will be able to access it, I'm supposed to use capabilities... <?php add_menu_page( ...
2
votes
1answer
390 views

using add_role function to make some users to create a selected type post

how are you ? I have in my site (post_type called = books).. I need to make some users for example (Library) to create a books (post_type = books) .. this is the code to add rols (called = library) ...
1
vote
1answer
939 views

Change user role after bulk-import

after successful import of ~4000 users and their blogs & posts from Liftype I have a rights problem: all users only are subscribers in their own blog. How can I mass change it to blog (not ...
0
votes
1answer
1k views

query users by role

I have a custom plugin which queries users and usermeta, but I now need to filter admins out of the results. A very simplified version of my sql query is: SELECT * FROM usermeta LEFT JOIN users ON ...
0
votes
1answer
997 views

How do I let contributors edit their posts after being approved once?

As above Background info Main problem: users pay to post an ad on the website Solution: they sign up as contributors and I publish their posts once the payment is received, after that they can make ...
3
votes
2answers
1k views

Associating an “author” with a custom taxonomy

I have a custom role, "Ministry Representative", which is able to log in and create and manage their own "Opportunities" and "Events", which is each a custom post type. On the front end of the site, ...
7
votes
2answers
12k views

How to check if a user is in a specific role?

I have a pretty specific requirement to show different text in a field label on the user profile page based on the current user's role. I can't seem to figure out how to check whether the current use ...
12
votes
4answers
15k views

How to change a user's role?

I have custom roles in my setup and I want to be able to automatically change a user's role thru a function. Say user A has a SUBSCRIBER role, how do I change it to EDITOR? When adding a role we just: ...
3
votes
1answer
453 views

Roles & capabilities GUI that does not create separate table

After reviewing plugins that deal with user roles and capabilities I concluded that I might be better off just hardcoding my settings into my functions.php file. This actually worked out well for me ...
17
votes
1answer
7k views

Editor can create any new user except administrator

I have set up a WordPress site for a client. The client has the Editor role, however I have installed the Members plugin and given the client the capability to add new users to the WP admin. This is ...
11
votes
6answers
10k views

allow editors to edit menus?

I would like to be able to grant my editors the power to change the menu, can this be done? The appearance tab doesn't appear to be an option at all, can I make it so?
5
votes
1answer
415 views

Disallowing Users of a Custom Role from Deleting or Adding Administrators?

(Moderator's note: The original title was "Custom User Role Restrictions") A project I am working on requires me to create two new user roles - one for the owner of the website and the other for ...
4
votes
1answer
363 views

Can I make user role that can only access a certian content type?

I would like make a custom role that can only access a custom content type that I'm going to be creating in the admin. Is that possible and does any know of any examples or tutorias that I should ...
5
votes
2answers
5k views

Defining capabilities for custom post type

On creation of a custom post type I'm trying to define capabilities but it's not working. What's wrong with this code? $args = array( 'labels' => $labels, 'public' => true, ...
3
votes
1answer
792 views

Allow user to Edit Posts but not Add New?

For one of my custom post types I want a specific user to be able to edit existing posts created by admin but not be able to Add New posts. How can this be done? If I define the user role as not ...