Names for a set of user capabilities.

learn more… | top users | synonyms (1)

2
votes
0answers
166 views

Allowing custom role access to custom post type in back end

So I'm having some issues with this and I can't see why. I just need a custom role that can access the blog in the back end. I've added a new post type with a Capability type of blog and a new user ...
2
votes
0answers
227 views

User-edit role setting distinct from wp_capabilities?

I need find out how $profileuser->roles is set. wp_capabilities can hold multiple roles, whereas user-edit role caters only for a single role. Under certain circumstances it is possible for there ...
1
vote
0answers
12 views

Add custom capabilities to existing custom post type

The only way I can find to associate post types with custom capabilities is during the register_post_type function. I'm looking to add a capability for a certain role (my_role) for a post type that ...
1
vote
0answers
22 views

Add additional 'description' field for defined roles / role metadata?

Is it possible to add an additional field for "description" to each defined role? (Administrator, Editor etc, plus custom roles). I'm using Justin Tadlock's Members Plugin and have created some ...
1
vote
0answers
16 views

Allow role to edit users at lower level with only specific metadata

How to allow a custom role, company-administrator, to be able to edit/create/delete users lower than their level, subscriber, where some metadata is matched? To elaborate: I'm making a membership ...
1
vote
0answers
22 views

Sync only certain users and roles between multi-site / multi-network

I've a multi-network with this situation: A) a public wordpress site with a forum for customers B) an intranet site accessible only by users enabled I've created some roles such as: ...
1
vote
0answers
12 views

How to create user that has permission to create new sites on WordPress with multisite option enabled?

I have installed user roles editor plugin https://wordpress.org/plugins/user-role-editor/ and created new role, but can't make this role to give the user ability to create new sites on WordPress with ...
1
vote
0answers
21 views

Multisite user roles - capabilities not working

I have turned my WP to Multisite and when I try to assing different roles to users, the role is assigned correctly - or at least it looks like (if you have user overview), but the capabilites are ...
1
vote
0answers
20 views

Allow users to set a post author

I have a website owned by myself that allows people to submit work for us to publish. I have a team of staff who need to create posts..etc I have assigned users the author role which allows them to ...
1
vote
0answers
36 views

Add conditional custom option to 'Display name publicly as' dropdown

Besides the built-in "Display name publicly as" options, I would like to add a custom "name + nickname + surname" option to the dropdown. This custom option should be determined by two conditions: ...
1
vote
0answers
36 views

Allow user to only access custom post type

I am starting to get comfortable with Custom Post Types, but I don´t get the capabilities for them right. I have something like this: // define capabilities... $capabilities_werden = array( ...
1
vote
0answers
60 views

Create Custom Multisite User Role to Reduce Capabilities

I need to create a new role for my multisite install for our Technical Account Managers so that they are only able to create/edit/remove users and create/edit/remove sites. I'm pretty sure I've ...
1
vote
0answers
37 views

How to restrict access to specific pages on the back-end?

Before anything... I understand how roles and capabilities work. And there are tons of plugins that help you manage those. Roles and capabilities can only be so specific though. Is there "wordpress ...
1
vote
0answers
28 views

Where are $current_user->allcaps set?

I recently found a problem with WP in which even the admin has no permission to get to anything on /wp-admin/. Oddly enough, when I compared the $current_user->allcaps to those on a normal site, I ...
1
vote
0answers
104 views

Get the User ID Who Owns a Given Blog ID in Multisite

I am working on creating a function that will take a $blog_id and return the corresponding $user_id of the user who owns/created the blog in a multi site network. public function ...
1
vote
0answers
89 views

Show comments of a user post only when they are login

I have a front end client portal I created when a user logs in they are redirected to a page called "Dashboard". The pages displays recent projects, invoices, and recent messages. Recent messages ...
1
vote
0answers
85 views

“edit_published_posts” and “edit_other_post” issue

I need to modify a roles capabilities for post editing: User can modify his own post (publish status doesn't matter) User can modify others posts (only as long as they are not published) I played ...
1
vote
0answers
58 views

Limit number of users a role can create

Just wondering if there is a way to limit the amount of users a specific role can create? For example, if Editors can create new accounts, I only want them to be able to create 20, and then they ...
1
vote
0answers
91 views

Add custom role across network in multisite

Maybe this is a duplicate of Add role across network in multisite, but the answers there are not conclusive so I'm asking again. Any help would be deeply appreciated. I'm trying to add two new ...
1
vote
0answers
115 views

Editor and contributor roles not correct after adding function

** RESTATED ** I am creating a bridge. The work involves a default installation of WordPress and a plugin to bridge a forum and WordPress. The forum provides all the account information. The ...
1
vote
0answers
47 views

User levels and post visibility

I'm having a bit of trouble detecting the view-ability of post types. I've created a front end plugin which lists posts/pages by the author. Testing if a user can edit a certain post type is easy but ...
1
vote
0answers
46 views

Allow user role “salesman” to view only “client” role users

I have created two new roles in my theme, salesman and client. I want, when "salesman" is logged in to be able to view and edit only "client" users. I am trying this code (taken from an answer in this ...
1
vote
0answers
343 views

Featured image not working, because of custom user role?

I've got a weird issue. My post thumbnails aren't working with a custom role. Images can be uploaded, and when viewing the media uploader they show as attached to the relevant post. However, when ...
1
vote
0answers
67 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 ...
1
vote
0answers
287 views

bbPress: How to set conditional for specific user -or- user role, to be displayed in user profile

I've been trying to set a conditional for specific users (e.g. http://www.mywebsite.org/forum/users/john/) to display a custom "Contributor" graphic within their user profiles. The graphic would be ...
1
vote
0answers
71 views

Selectively applying action based on role

I've added an action to my functions.php file that forces a plugin (Content Scheduler) to act on posts, even when it wasn't explicitly enabled by the person writing the post. I've got that working, ...
0
votes
0answers
15 views

Restrict access to shop pages for user role subscriber

im realizing an member area with the plugin WP-Members. I have to add an shop in this member area. My problem now is that i have just one user with the role of subscriber to enter the blocked content. ...
0
votes
0answers
17 views

add a custom user role and assign specific admin menu pages

There is wordpress function add_role to add a custom user role by adding wordpress defined capabilities like read, edit_posts, delete_posts, etc But I want to create a custom user role and assign ...
0
votes
0answers
71 views

How can I fetch all users who are at or above X role?

What is the best way to get all users who are above a certain role, like 'author'? Is this the best way? $user_args = array( 'meta_query' => array( array( 'key' => ...
0
votes
0answers
24 views

How to bulk change user role to “No role for this site”

If I edit an individual user, the role dropdown menu has the option "— No role for this site —" (<option value="">— No role for this site —</option>): However this option doesn't exist ...
0
votes
0answers
13 views

translate_user_role doesn't work

I did dozens of tests, this is the code that I am tring to make work: $user = get_userdata($user_ID); /* WE NEED TO REMOVE BBP ROLES */ $roles = array(); global $wp_roles; foreach ...
0
votes
0answers
22 views

Access level seems to have gone from admin to editor

I have a client with a wp site (4.2.2) hosted by GoDaddy. Yesterday, when she logged in a number of links on the dashboard menu were missing = including plugins, settings. Others, like the godaddy ...
0
votes
0answers
11 views

Multisite - make an admin network page accessible by any user in the network

I want to programatically create a new blog for a newly registered user and I have an issue with permissions. For the wpmu_create_blog function to work properly, some files must be included and when ...
0
votes
0answers
54 views

How can I track registered wordpress users with Clicky analytics by user role?

I use Yoast's Clicky analytics plugin to easily integrate Clicky tracking for my wordpress website. (I tagged this question with the google-analytics tag because I do not have enough points to create ...
0
votes
0answers
44 views

Allow Admin to edit Custom User Role Custom Post Type posts

I have created a Custom Post Type of 'Listing' so that users can add listings by signing up to the website. I have also setup a Custom user role of 'lister'. So, each user (lister) can sign up to the ...
0
votes
0answers
81 views

Display user role name instead of user role id in wordpress

I want to display the user role name next to them on an event attendee page. So far I've got it to work using this code: $aanmelding = $EM_Booking->get_person()->ID; $user = new ...
0
votes
0answers
10 views

“User Role” Not Working

While following recommendations in IThemes Security Plugin, I renamed the database file prefixes which broke our site (multisite installation). I restored the database and everything seemed to work ...
0
votes
0answers
16 views

Allow user to edit same category posts published by other user

Is it possible to allow user edit their own posts and also posts that are published in same category by other users?
0
votes
0answers
14 views

Show authors own posts AND all other authors published posts in dashboard

In the Backend Posts section I'm looking to show only the logged in authors posts and all other published posts. e.g. Author 1 has 3 drafts and 1 published post. Author 2 has 4 drafts and 1 published ...
0
votes
0answers
13 views

Site admin that can see everything, but not save

Maybe it's strange question, but I'm interested in it; Is there any way to allow user display everything, that Admin can see (site options, custom types, plugins settings) but disallow to edit ...
0
votes
0answers
20 views

Hide categories from authors

Is there a possibility to hide certain categories from specific user roles? This must only affect the backend, especially the create post site. On the frontend these "hidden" categories must not be ...
0
votes
0answers
23 views

Hide admin menu items for role

I would like to hide the admin menu items 'Posts', 'Pages', 'Tools' etc. for specific custom added roles. But I don't only want to exclude the items from the menu, I also want to make it impossible ...
0
votes
0answers
44 views

Post_name is missing after wp_update_post

I have a problem with my CPT. Registered a partner post type and I want the partner to be able to edit it if the post is draft or pending. I can edit the whole post instead post_name. Post name will ...
0
votes
0answers
35 views

Change the user role based on login or theme switch

I'm developing a CMS system based on a multisite installation. I need to be able to do the following: Whenever a user logs into his site, he will immediately be forced into "Contributor" role. I ...
0
votes
0answers
18 views

Assign users to groups that can only see/edit certain pages within the admin?

This may have been answered before, but I'm having trouble getting it to work. I want the ability to assign users to groups (e.g. Bob & Susan are assigned to Group 1). When I'm creating pages, I ...
0
votes
0answers
36 views

Displaying WordPress User Role

I have a ticket support form on my site which right now has a field which returns (in the admin area) the name of the person who submitted the form. Anyone know how I would modify this to display ...
0
votes
0answers
24 views

How to get permissions to read the post

I have a problem to make this kind of functionality within Wordpress. Three equal user groups: A, B and C. I have a list of all posts with different permission assigned to read them: posts open to ...
0
votes
0answers
23 views

WPMU: Sign-Up Page on each site with automatic sign-up?

I wonder how todo the following and if someone could help me with a solution for it: I have a multisite setup, where I want on each site to have their own sign-up page (e.g regular signup-template ...
0
votes
0answers
82 views

How to assign role to a custom registration form?

I am working on a custom registration form. How can I assign a role of "participant" to the new user? I tried many methods but did not succeed; the role change is not reflected in the admin user's ...
0
votes
0answers
35 views

Send in for review instead of publishing posts

I'm using a script to add multiple editors to a specific post (custom post type), so when they login, they only can edit the posts they are linked to. The problem is, when a user edits a posts, he can ...