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.

learn more… | top users | synonyms (1)

0
votes
1answer
51 views

Best Roles and Capability on a site with review features using a front end custom post

I'm working on a Movie Blog site, I'll be having a movie review for site members and planning to create/install plugin that can create a front-end post/edit using a custom post type for that reviews. ...
0
votes
1answer
90 views

User: Editor, can't see edit taxonomy screen

For some reason the Editor role does not get access to the edit taxonomy screen on my site. Maybe that is expected behavior, I dont know - But how can I add this to the editor role capabilities?
2
votes
1answer
1k views

Role Capabilities: Add New Ones?

I'm trying to create a private type of community ... and the current Capabilities are great, except for the fact that I don't want users of a certain Role being able to see anything that someone else ...
4
votes
1answer
709 views

Restrict Admin Capabilities in MultiSite

update_core update_plugins update_themes install_plugins install_themes delete_themes edit_plugins edit_themes Hi, I want to restrict those capabilities to user_id = ...
1
vote
1answer
146 views

Organize WordPress site, so it can maintain with huge database

Intro: Hello, I am making coupon website and I need an advise. So, the structure at the moment is like this: Coupons ( posts ) Categories of coupons ( categories ) Shops ( tags ) In the near ...
2
votes
1answer
612 views

Temporary capability for current_user_can()

Is it possible to intercept calls to current_user_can() ? Example: current_user_can('rate', $post_id) There's no "rate" capability registered, but could I somehow hook into that function and do my ...
3
votes
1answer
821 views

How do I fix problems with users not being able to publish and only submit for review after upgrade of Multisites installation?

We have a previous WPMU installation that has been upgraded to a WordPress Multisites installation. Since upgrading to 3.3.2 from 3.2.1 we have problem with editors/admin not being able to post on ...
0
votes
1answer
2k views

Why is wp-login redirecting to the home page when I use this function?

I'm perplexed; I can't see where I'm going wrong with this code. It should redirect any subscriber-level users back to the site home page if they try to access anything within /wp-admin - but not if ...
0
votes
2answers
1k views

Custom wordpress admin page/url “You do not have sufficient permissions to access this page.”

Here's a custom wordpress admin page I created:- // code located in my custom plugin's php file function my_special_function(){ echo '<div> Hello World </div>'; } function ...
4
votes
1answer
2k views

add_menu_page permissions - what am I doing wrong?

I am running a fresh install of Wordpress 3.3.2 and the only plugin enabled is one I'm developing, but I can't seem to get past a permissions issue in add_menu_page. With the exception of using ...
5
votes
4answers
3k views

Select subscriber as author of post in admin panel?

I want to be able to select a subscriber an author of a post in the admin so it displays their name as having written the post, but I do not want to give them any additional privileges (if they login ...
0
votes
1answer
441 views

insufficient permissions; coding an action for plugin governed by custom capability

I'm working on a modification to WP Super Cache which adds two new capabilities to give more control of restriction to certain features. My goal is to a) allow Editors to see the Delete Cache button ...
1
vote
2answers
104 views

Making a plugin only available on the front-end for the logged in super admin

I made a little plugin that enqueues 1 .js file and 1 .css file into a theme's front-end. All it does it load a grid on top of the theme so I can visualise the design. If this plugin was activated ...
0
votes
2answers
615 views

How to hide plugin options for editors via functions.php

I've read the entry Best Collection of Code for your functions.php file, it really help me a lot. I only got a question, is there a way to hide some plugins options (in their respective ...
2
votes
1answer
300 views

How-to Delay The Capability To Publish Posts?

I use buddypress and all new members have the role of author. The site is more like a forum with one topic. I'm not worried about comments, just posts. Recently I have received a bunch of spam from ...
1
vote
1answer
543 views

can't see custom post content filtered under “mine” filter in admin panel

after creating a custom post type with custom post type UI plugin, and after creating the capabilities for a new role to edit, delete and publish it's own custom posts with User Role Editor plugin, ...
2
votes
1answer
206 views

Problem using role_has_cap hook

I'm trying to filter a capability check in order to work around the lack of filters to customize the user edit page in the admin area. But I can't seem to add filters to a hook, and I'm sure I'm ...
0
votes
1answer
388 views

wp_redirect and current_user_can issues

Put simply, I'm trying to redirect the user after clicking a 'Save Changes' button. The plugin uses custom capabilities, and so I want to check the current user has the correct capabilities before ...
0
votes
4answers
5k views

How can I restore admin capabilities?

So yeah, I'm a genius. I managed delete all my admin capabilities (thank you very much Membership plugin). I could restore them, ...if I had admin access, lol. Anywhoo, how can I give all my ...
1
vote
1answer
155 views

How do you set up a WordPress blog with multiple authors to allow something like StackExchange's “community wiki” feature?

I'm thinking about having a blog with multiple authors. In the WordPress Roles documentation, authors can publish posts but only edit their own and not posts by other authors, which is what I'm ...
0
votes
1answer
2k views

Create a User Role with permissions to only upload files to the media library?

Some of the employees at my organization need to be able to upload files to a folder and share a link with others. It’s primarily documents like pictures, pdf’s and Word documents. And instead of ...
7
votes
2answers
9k views

How do I create a custom role capability?

I wish to create a custom capability for accessing the interface of my plugin. Should the plugin manage adding this capability to all the administrator accounts on activation? If so: Does WordPress ...
2
votes
1answer
262 views

Add user capability and check against it

I just realized the following: // Call the current user info global $current_user; // Add a capability // and set the 2nd argument ($grant) to false $current_user->add_cap( 'some_cap', false ); ...
0
votes
1answer
448 views

User role editor - Add download files capability

I've got User Role Editor plugin installed and i want to add a capability for download files. I've got some downloads in a custom post type called 'products'. I want only people who are logged in to ...
3
votes
1answer
377 views

The 'user_has_cap' hook seems to take two page loads to trigger

This question relates to another question I asked recently (http://wordpress.stackexchange.com/questions/29009/how-to-assign-specific-users-the-capability-to-edit-specific-pages-posts-cus/), the ...
0
votes
1answer
176 views

How to add post of custom type to a category with custom type capabilities

I have created a custom post type 'shows'. And I am using the capabilities argument to create my own custom capabilities. My aim is to have a user (show_manager, say) who can only edit/create shows ...
9
votes
2answers
3k views

How to create a clone role in wordpress

How to create new role with same capabilities of existing role. Eg: I would like to create a new role with same capabilities of administrator or editor and so on..
1
vote
1answer
2k views

How do I restrict user access to plugins?

I have created a new user role in my functions.php and set up booleans for each standard Wordpress capability (as listed on [the Wordpress ...
5
votes
1answer
4k views

How to assign specific users the capability to edit specific pages / posts / custom post types

I'm trying to implement what seemed like a relatively straight forward idea, basically I am building an access control plugin to control viewing and editing of a custom post type (in this case ...
6
votes
2answers
8k views

Possible to hide Custom Post Type UI/Menu from specific User Roles?

What I'm looking to do is completely hide the UI for a custom post type from specific user roles...Ive previously found many resources on how to disable access to using those CPTs but nothing that ...
5
votes
1answer
854 views

Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding 'capability_type' parameter

I got quite confused with Custom Post Type (CPT) 'capability_type' parameter and adding generated capabilities to a role. So I've got a CPT called 'external_role' registered as following: ...
7
votes
3answers
4k views

Groups of capabilities: users with multiple roles?

I'm pretty sure I understand the roles and capabilities setup in WordPress: granular capabilities, grouped together in roles that can be assigned to users. Code should check the granular capabilities, ...
3
votes
1answer
191 views

Can someone explain Wordpress caching, and what's the best in my scenario?

I'm creating a website that has two basic user groups: Subscribers and Editors. Bot can create posts via a custom form using wp_insert_post(), but Editors are allowed to mark a post as private, ...
0
votes
1answer
104 views

How can I restrict changing the max nested comment levels option to super admins?

I have an older theme that I've modified to support threaded comments. I would like the individual admins in my multisite install to be able to choose whether threaded comments are enabled. However, ...
10
votes
3answers
6k views

Is there way to rename user role name without plugin?

Is there anyway to rename a user role name via hook, instead of using plugin?
2
votes
1answer
599 views

How to programmatically add a user to a role?

I want to programmatically add the current user to a role and also remove the current user from a role in a php page i created . am really stuck. thanks in advance
0
votes
2answers
117 views

Hiding custom theme functionality using capabilities

have spent half an hour hunting around on Google to solve this so any ideas greatly appreciated! I'm using a bought theme running wp3.2 and the theme includes a few extra features Testimonials, ...
0
votes
1answer
301 views

user_can() not working for comment authors

I'm trying to do some capability checks on comment authors using the user_can() function, but for some reason it isn't working at all. I have a custom capability setup with the Role Manager plugin ...
0
votes
1answer
2k views

How do you add custom taxonomy capabilities exactly?

I can't see to get it. The capabilities fail to appear when using plugins like "Capability Manager" or "Members" to view a list of available capabilities. This is the code I'm attempting to use: ...
-1
votes
1answer
133 views

How come I see a manage_categories capability but not a manage_tags capability for any users?

Using plugins like "Members" or "Capability Manager", I don't see any such manage_tags capability. Shouldn't there be one like there is manage_categories? EDIT: I think I figured it out. manage_terms ...
1
vote
2answers
728 views

When you create a custom post type, does that also create capabilities for editing/deleting that post type automatically?

For example, if I create a post type called "destinations" does that automatically create capabilities like "edit_destinations" or "delete_destinations"?
1
vote
1answer
2k views

How to enable a site administrator to edit users in a WordPress network/ multisite setup?

I have a few sites in a network. I don't want the site administrators to manage things like network plugins, but I would like them to be able to edit profiles of all network users, not use those on ...
1
vote
2answers
216 views

Wordpress bug with capabilities?

EDIT: aha! It appears to be the "Role Scoper" plugin causing this problem. Deactivating it restored the functionality. Consider this question null. I've enabled the capability of uploading files for ...
5
votes
1answer
1k views

How can I create a taxonomy meta-box with search suggestions but no new terms input?

I was wondering how I could setup a taxonomy metabox on a post edit page that would be similar to the "tags" kind (with search field and automatic suggestions), but without the right to add a new ...
2
votes
1answer
360 views

how to assign more permission to wordpress author

I have installed jw player plugin so that users of my site could upload their videos. Right now, admin can only see jw player menu on the admin panel and he can only upload videos and use this plugin. ...
2
votes
3answers
914 views

Allow unfiltered HTML in titles for low level users?

How can the unfiltered_html capability be given to non network admins in a multisite install to allow HTML in titles? In wp-includes/capabilities.php (below) it appears that this capability can not ...
2
votes
1answer
531 views

The delete_posts capability?

Shouldn't this remove the capability to delete a post? Even if I remove the delete_posts capability for an editor, he still can trash a post and then delete i permanently. That can't be right. How do ...
1
vote
1answer
68 views

Does an AJAX call on the Admin Side Automatically include the User Data/Capabilities?

I was wondering that if you do an AJAX call on an admin page and I wanted to see if the user had the capability to edit a page, would that info be sent along the call or do I need to manually sent ...
0
votes
3answers
2k views

How can I grant capabilities directly to users (not roles) in wp-admin?

I want to create dynamic capabilities using WP_Role::add_cap(), something like $author_role = get_role('author'); foreach ($sections as $section) { $author_role->add_cap( ...
1
vote
2answers
758 views

How to show a admin bar menu item only to users with certain capabilities?

I'm trying to add items to the admin bar but only for users with certain capabilities, such as add_movies in a plugin. The problem is that, according to @toscho and @TheDeadMedic, the plugin executes ...