Questions tagged [user-roles]

Names for a set of user capabilities.

Filter by
Sorted by
Tagged with
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 ...
1
vote
1answer
2k 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 ...
9
votes
5answers
13k views

WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins

I have multi-author website and I am not very comfortable for allowing all members to enter SEO details in the posts they are publishing. I would like this would be visible only to Administrator of ...
0
votes
1answer
163 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
67 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
170 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
654 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 ...
2
votes
2answers
122 views

Unify the roles and caps?

I installed several plugins(buddypress-docs,achievement,bbpress), each one create capabilities for their own post_type. I would prefer to make all roles and capabilities unified into one system, Is ...
6
votes
2answers
2k 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
240 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 a ...
0
votes
2answers
1k views

One author not showing in Author drop down list while editing page

USER01 is not showing in Author drop down list while editing a Page if he's in the my custom ROLE "mycustomrole". If I change his role as an AUTHOR, and add the very same custom and non custom ...
4
votes
1answer
2k 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
1k views

Creating teams of users in Wordpress

I'm currently working on a University project which is a website for managing a GameJam events occurring every 6 months. Our users will be in teams of 1 to 4 people and will be able to post about ...
1
vote
1answer
1k 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 ...
8
votes
5answers
25k 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 ...
3
votes
2answers
2k views

Get user role by using user_id in buddypress

I need to classify the user according to their role, so I need to find the user role by using the user_id alone (not only for logged in users but for all the BP users). Something like this $user_role=...
1
vote
1answer
2k views

Hide Menu items base on capability

What is the best way to add/remove items for the wp_nav_menu() based on user roles? For instance a custom menu that looks like: Some Page Some Other Page Special Admin Page Where the Special ...
2
votes
2answers
2k views

Identical members roles on all sites in a multisite

In a multisite system I need editorial accounts with custom rights. Therefore I have chosen the members plugin. As I do have lots of sites, creating and synching the roles for all sites becomes quite ...
1
vote
1answer
72 views

Want to be able to sign up subscribers as authors

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 ...
3
votes
2answers
2k views

Assigning a category to a user role

I was looking for a plugin for this, but so far I cant find one that does what I want. I limited the user role capabilities with 'Restrict Capabilities'. But the authors still have to click the ...
0
votes
1answer
145 views

Is there a capability/User role plugin that lets you specify edit 'posts' not 'custom posts'? [duplicate]

Possible Duplicate: When you create a custom post type, does that also create capabilities for editing/deleting that post type automatically? I have many custom posts in my wordpress site. I ...
-1
votes
1answer
139 views

Explanation of User Roles and Capabilities

I'm developing a Wordpress theme. In this theme, there are a few custom post types. Custom Post Types : book article event We are using Wordpress' default user roles (we can create new roles, if ...
1
vote
1answer
903 views

Restrict other Admins from using Editor in Admin Panel

I am running a WordPress website. I want to assign other users roles like Admin, Editor, etc. I want them to be able to install plugins, themes, delete them, etc. The only thing I don't want them to ...
0
votes
2answers
2k views

How can I show different content for different user-levels?

Can I use is_user_logged_in to manage content for different roles? Example: If subscribevr user is logged in.... show content.... else show "you are not logged in" and on anonther page if ...
0
votes
1answer
647 views

How to add only a (sub) capacity to an user role?

I know I can add capabilities to the any role using the role object and add_cap via functions.php <?php // get the the role object $editor = get_role('editor'); // add $cap capability to ...
1
vote
3answers
3k views

Check whether user can delete a given post

I have run into this problem where the following piece of code always returns true for any post ID supplied to it. current_user_can('delete_posts', $post_id); Normally, the above code should return ...
5
votes
1answer
3k views

Creating custom user roles

I need to create a custom user role who will be able to create posts (of a specific post type) but not publish them (just like the current contributor role. I'm being a bit confused on how to create ...
2
votes
1answer
606 views

Allow Administrator role access to custom capabilities [duplicate]

I'm currently developing a Wordpress business directory plugin with a 'business' custom post type. I have it creating a custom 'business_author' user role on activation and assigning specific ...
0
votes
1answer
188 views

Assign a category by user and customize the edit-tags.php?taxonomy=category page

I've been searching for days now without success... Here's my goal: - assign a top level category by user (this I've made it) - let each user create child categories only in his assigned category (...
1
vote
1answer
2k views

pre_get_posts Remove posts based on meta value with 'post__not_in'

I am attempting to alter the query of pages where the post meta value of _members_access_role does not meet that of the currently logged-in user. Here is what I have so far: // Get all posts with the ...
3
votes
3answers
4k views

Role that can edit only widgets, not other theme options

How could I make particular role access widgets administration menu (wp-admin/widgets.php), but not access other theme administration menu elements. I have got that far as to display Appearance menu ...
0
votes
1answer
190 views

Show special backend content for certain roles

I think I'm pretty close to what I need, but just need a little direction. I'm trying to show a content widget in the backend to users of a certain role. Right now, I'm just testing it out with a user ...
2
votes
3answers
22k views

Limit access to posts/pages by user roles

I'm looking for a way to protect content by user roles. Example: you have to be registered to view posts (frontend). If a user is a subscriber he can read post 1, 2 and 3, but if the user is a ...
0
votes
3answers
2k views

List total number of users that are authors

Question I want to display total number of Authors and total number of subscribers on the blog but exclude the admin in this way: 56 Authors so far 15 Subscribers so far Code that is close to ...
8
votes
3answers
19k views

Find out if logged in user is not subscriber

Is there any conditional tag which will allow me to display the certain content only if the user is NOT a subscriber?
1
vote
1answer
2k views

edit role display name and label name without plugins

I'am creating WordPress function for editing role name function change_role_name($role_name, $new_role_name, $display_name) { global $wp_roles; if ( ! isset( $wp_roles ) ) $wp_roles =...
1
vote
1answer
438 views

Show different badge based upon the user role

Problem I have authors page and I need to display a different badge for Authors and Subscribers. Authors on the site have certain abilities that differ from Subscribers and I would like to display a ...
1
vote
1answer
405 views

Can a Plugin Override New User Default Role Type

I'm making a plugin that creates user accounts. Is there a way I can create new users that get the role that I (the plugin developer) tell them to, as opposed to making them all the default new user ...
0
votes
1answer
563 views

add_cap for editor but no admin role

I want my editors to have the possibility, to add other users. I added: $edit_editor->add_cap('create_users'); $edit_editor->add_cap('delete_users'); $edit_editor->add_cap('edit_users');...
1
vote
1answer
7k views

Advanced Custom Fields/User Role Editor - how to hide ACF for certain users?

I am using User Role Editor to specify customized user roles. I am also using Advanced Custom Fields plugin. I would like to be able to hide Advanced Custom Fields from showing up for certain users; ...
15
votes
3answers
24k views

How to get role of user

I need to get the role associated with a user -- not the "currently logged in user". I am using Buddypress (not that should matter to the nature of this question) and I am in the bp_members() loop. ...
7
votes
2answers
6k views

wp_update_user not updating

In desperation I am asking for help in this forum too - if someone (ANYONE!) could take a look a this post and see if they could help I'd be eternally grateful http://wordpress.org/support/topic/...
0
votes
1answer
71 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. ...
1
vote
1answer
632 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
3answers
2k views

How to assign capabilities to user NOT to User Role

Is there any way to assign custom capabilities to user, I'm NOT talking about User Role. I'm running a multi author blog where I assigned user role of "Author" to all of my authors. But I ...
2
votes
1answer
975 views

How to Orderby User Role?

Im looking to order posts by the users role... I currently have 2 user roles (intending to create more), and they are "Premium User" and "User", and some poss created by "Admin" All of these posts ...
2
votes
1answer
2k views

How to remove “Super Admin” from All Users for those that are not a “Super Admin”?

I would like to remove the filter at the top that says "Super Admin" for users that are not a "Super Admin". How do I go about doing this? This screenshot shows what I am talking about:
2
votes
1answer
512 views

Users Role and Access

I am a bit of a novice to this so please be patient. I am trying to create a site with a programmer using wordpress, but not using it for blogs or post. I am not a programmer myself. I want people ...
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 ...
0
votes
1answer
69 views

Custom role can't create permalink

My user post a new custom type "artprim_item" and it doesn't work unless I remove permalinks. The item is created, but the permalink links to "item not found". More importantly, if I open the item ...

1
19 20
21
22 23
25