Names for a set of user capabilities.

learn more… | top users | synonyms (1)

3
votes
1answer
491 views

Restrict users on multisite WordPress install

I have a series of sites that I maintain as part of a WordPress multisite install. I'd like to be able to create users accounts that are restricted to viewing only a single one of these sites. Is ...
5
votes
1answer
1k views

Temporarily give 'manage_options' capability

In order to allow editors to edit other's author meta (update_user_attribute), I must give them the 'manage_options' capability or else I get a 'Cheatin' huh' die message. I only want to give them ...
0
votes
1answer
152 views

Grant access to admin menu?

I'm trying to grant the user role 'editor' to have access to the Users top-level menu, and then control which sub-menus they have access to. The add_action lives in the _construct method. add_action( ...
0
votes
1answer
107 views

What capability is required to view posts, scheduled in the future, by someone else?

So, I'm trying to create a number of custom roles within my theme to meet with the custom requirements of the site. The first, and most simple, being 'external viewer' who I want to simply be able to ...
0
votes
1answer
869 views

Role based permission edit for plugins

I have TheThe Fly Image slider installed on my website which has multiple users. I wish to hide the settings from contributors and authors, but allow editors and admin roles to be able to amend the ...
2
votes
3answers
340 views

Is it possible to get a user with just the password field?

I tried doing something like this: $user = $wpdb->get_row(' SELECT * FROM ' . $wpdb->users . ' WHERE user_pass = "' . wp_hash_password('password') . '"' ); But the ...
2
votes
4answers
10k views

Troubleshooting a “You do not have sufficient permissions to access this page” error

I have a multisite installation running WP 3.5. My main site and a few other blogs on the network work fine. However, if I register a new user and site, that user gets the "You do not have sufficient ...
0
votes
1answer
376 views

Allow admin roles to add images to comment replies

this may be a step too far but I publish occasional tutorials on my personal blog and sometimes in comments get asked questions where an image would be very helpful to include as the answer. I've done ...
0
votes
2answers
2k views

Reset Roles (or undo role changes on theme change)

I am creating a theme that deletes some user roles that are not necessary and creates others. (It deletes author and contributor and renames subscriber). Everything works, but on theme deactivation, ...
0
votes
1answer
304 views

Check user's role and store in variable

I am using custom user roles which I create and assign by using a plugin. I was wondering how I could retrieve the user's role and store it in a PHP variable. What I am trying to achieve is something ...
0
votes
2answers
835 views

can i limit editing specific custom fields to certain roles?

i am writing a plugin that injects unescaped content (including javascript) into a post. i'm storing this content as a custom field, and am wondering if there are any built in ways to prevent users ...
0
votes
2answers
626 views

Contributor disable seeing others' posts

How can I disallow contributors on my site from seeing what other posts are published on the site, and only see their own?
1
vote
3answers
4k views

Temporarily disable user role login and replace with message

Is there a simple way to temporarily stop a user role logging in with wordpress? For example, if I have a user role called media, how can I block them from logging in? I would like a custom message ...
0
votes
1answer
238 views

When using a user role editor how to find out any plugins' or themes' role?

Suppose I'm using a Theme which has a custom panel in the admin area, or I'm using a Plugin, has similar Admin menu button. But all such button are only visible to Administrator. When I'm loggin in ...
2
votes
1answer
3k views

Where are available Roles Defined in the wp_ database?

I got on the list to test a private beta of a plugin I'm using on a multisite network. The plugin authors have code in there to add a custom role. They have a bug that removes the ability to give a ...
1
vote
1answer
731 views

Prevent Editors from Editing/Deleting Admin Accounts

I need editors to be able to add/edit/delete other users. Giving them those capabilities is easy with code similar to this: $editor = get_role('editor'); $editor->add_cap('edit_users'); The ...
3
votes
1answer
286 views

Change role after the user has read all the posts in a category

I'm creating a platform with "X" categories and "X" roles with the same name to each category. I would like to know how to change the user's role after they have read all the posts in a category. ...
2
votes
2answers
1k views

Restrict dashboard access for specific user roles to specific actions

I have a script that enables a logged in user (role Author) to delete their own posts using get_delete_post_link(). However, I also want to be able to restrict the author's access to the dashboard. ...
2
votes
1answer
622 views

Restrict Author role to only 3 wp-admin pages

I allow the author user role to add/edit posts (using a custom post type called "User Posts") as well as add/edit their own media from wp-admin. I currently have it set up so that the only menu items ...
0
votes
1answer
258 views

Reapproval for edits and deletion after post is published

I regularly have guest authors who post one or more articles on a non specific schedule. So I provide them with permanent contributor accounts to avoid the hassle of making them accounts and deleting ...
4
votes
2answers
10k views

Allow contributor role to upload images and not edit already published articles

I have the following two requirements: I want to allow users with the contributor role to upload media (images mostly) in their posts and preferably they shouldn't be able to delete existing ones ...
0
votes
3answers
2k views

How do I display user name, role and site name using HTML tags inside a dashboard notification?

Here's what I have so far as my notification, but I can't find any information around how to input the user's name, role and site name within those sections. You can see where they are supposed to go. ...
2
votes
1answer
307 views

Add Role inherits?

On the WordPress codex Add Role page it says how to add a role, but I can not figure out how to do it, or that is inherits. Specially the comment //Use false to explicitly deny. What does that mean? ...
2
votes
2answers
204 views

Remove Ability for Administrators to Delete Administrators

I've been studying roles and capabilities and have worked with and worked up a bunch of awesome code for creating unique capabilities and roles. I have created a "Master Editor" role to maintain users ...
0
votes
2answers
972 views

Allow AJAX call to other roles than admin

On my website, registered users (subscriber role) can send drafts and, if admins validate them, they are published. I'm trying to add a tag box to frontend editor used to send new posts. To implement ...
0
votes
2answers
378 views

How can I manage and limit disk usage for each author?

I want display and limit disk usage for each author and be able to manage disk usage as an administrator. Example: author1: disk space is 20Mb; if they uploaded more 20Mb the upload button (in media ...
0
votes
1answer
275 views

Only Admin can Edit, Delete or Update

I want to know if there is any way in WordPress that only Admin can update/edit or delete published posts/listings. User who have submitted the post/listing can't even edit/update or delete it. Theme:...
0
votes
1answer
167 views

Role Scoper, don't allow other users to see pending posts

I have noticed in Role Scoper recently (sure it wasn't always like this) that contributors can see all the pending posts of all users. Basically I have it set up so users have to submit their posts ...
0
votes
2answers
599 views

Require Capability to View Woocommerce Product

I am using Woocommerce and I have products in a category called B2B whose single_product.php is only to be shown to people with the capability read_b2b. <?php if ( have_posts() ) : ?> <?php ...
2
votes
1answer
3k views

Apply custom role capabilities to administrator (without plugin)

I have a custom role that allows access to only a sigle custom post type. This is all well and good, but now it is only showing up for this role, not for admin and super admin. I'm having a hard time ...
7
votes
2answers
478 views

alphabetically order role drop-down selection in dashboard

The site I'm working on will have a very large number of unique user roles via a members plugin. Because of that, I'd like to have the Role drop-down selection on the Add New User page to display ...
0
votes
1answer
223 views

How to give “author” user role appropriate capabilities to add PollDaddy polls? WordPress multisite

At the moment, users with role "Author" can only view but not add or edit polls. "Editor" and "Administrator" (site administrator) can add and edit polls however. This is despite the fact that I ...
0
votes
1answer
44 views

Change role's settings influence post-thumbnail

In my theme functions.php i get code: add_action( 'admin_init', 'my_remove_menu_pages' ); function my_remove_menu_pages() { if(!current_user_can('delete_others_posts')) { remove_menu_page('edit....
1
vote
2answers
119 views

Role scoping for contributors down to the field level

We've been looking for a Wordpress plugin or system that lets you scope admin/contributor "roles" down to the field level. We have an immediate need for something like that, but totally coming up ...
4
votes
2answers
368 views

How can I display all Multisite blogs where this user is administrator?

Given the user ID, how can I display all the blogs where this user is administrator? I tried: <?php $user_id = 2; $user_blogs = get_blogs_of_user( $user_id ); echo '<ul>'; foreach ($...
3
votes
2answers
9k views

Is it possible to add new user Roles?

I wonder if it is possible to create a new user role and give him special limited abilities? I'd like to have some users who can only add events onto the calendar. They should only be able to work ...
1
vote
1answer
1k views

Pending status by default for a specific role

I would like to prevent users from one specific role from publishing directly their articles. Only administrators should be able to approve these. The only choice they would ever have is to put their ...
0
votes
2answers
85 views

Posts in sidebar only by admin

I want to show in latest posts widget only posts by admin (now its showing latests posts by all suers). How I can do it ? via wp query ? Thanks :) <?php // setup the query $...
3
votes
3answers
1k views

Programmatically changing role information; editing role name and deleting

I am making system where I am delegating a lot of functionality to the front end of a system using Wordpress. I have listed all the roles (most of the custom) and need to ability for a logged in user ...
0
votes
1answer
841 views

How to restrict specific post types from being read or added by specific user roles (eg. author)?

I'm not very clear how to restrict admin area post types access to specific user roles. In my case, I have some post type such as "suppliers" which I do not want to show to "authors". By default WP ...
0
votes
1answer
125 views

Custom post type & role issues

I am having issues with using custom post types and custom user roles. I created a custom post type called Businesses. Then I created capabilities for users of a certain type to be able to add and ...
0
votes
1answer
64 views

Is it proper to build a site supporting blog visitors in WordPress?

I am quite new to WordPress and PHP. I am currently working on a website and I finally come down to WordPress. I guess I might be able to accomplish my work on top of WordPress but I am not sure. I ...
1
vote
1answer
156 views

Admin comments and user restrictions

I have set a bunch of roles within wordpress with the help of the "members" plugin. But the capabilities regarding the comments moderation are very limited ("manage_others_comments" or not) What I ...
0
votes
2answers
472 views

Set user role based on invitation code

I'm working on a site where I'd like anyone to be able to sign up, but people who sign up with an invite code would automatically be promoted to a role with more privileges. I'm aware that there are ...
5
votes
2answers
1k views

Add custom user capabilities before or after the custom user role has been added?

Should custom user capabilities be added before the custom user role has been added, or the other way around? add_role() asks for and array of $capabilities in the third parameter of the function. ...
0
votes
1answer
220 views

how to allow unregistred users to view normal posts [closed]

If an unregistered user/stranger try to view a post it says "You must be registered or logged in to view the post". http://testandverification.com/events/dvclub-august-2012-on-sv-uvm/ We have ...
1
vote
1answer
1k views

How to target with css, admin elements according to user role level?

I am using plugins "Capability Manager Enhanced" and "Adminimize". Between these two I have been able to do much of what I want to do. There are still some elements I need to hide and have been able ...
0
votes
1answer
491 views

Creating teams of users in Wordpress

I'm currently working on a University project wich is a website for managing a GameJam event that occures every 6 months. Our users will be in teams of 1 to 4 people and will be able to post about ...
1
vote
1answer
279 views

Is there a capability for managing plugin options?

I have an Editor user that I want to let use a plugin's options without being an Administrator. I can use $user->add_cap but can't tell if any particular capability relates to the permission to edit ...
2
votes
4answers
5k views

How to prevent access to wp-admin for certain user roles?

I did try using the plugin Front End Users but this clashes with something as it prevents access to some front end pages. So I need to manually just set it so that anyone who isn't one of two ...