Names for a set of user capabilities.

learn more… | top users | synonyms (1)

0
votes
1answer
231 views

Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?

even though I think I understand the hierarchy of roles in WordPress, I never really bothered creating my own user roles or custom capabilities. What I need to achieve is to assign a few capabilities ...
5
votes
1answer
51 views

How to auto-translate custom user roles?

I developed a small plugin that adds (or to be more precise: first deletes then adds again) some custom user roles. Each of these roles is set up in a way like this: function ...
0
votes
0answers
14 views

Sidebar menu based on user role

This is a follow up to my own topic: Show menu in sidebar if on specific page AND specific user role (is_page, current_user_can) It didn't quite work as intended. To recap, I want to show a different ...
0
votes
0answers
25 views

Change Default User Role for new signups on Multisite

I'm using WP 3.8.2 for Multi-Site. Is there a plugin that can change the default role of new user singups? I want all new signups to be "editors". Is this possible, I found this old plugin, but it is ...
0
votes
1answer
22 views

How to customize wp_signon()

I am trying to get a customized sign on process. The features that are absent in WordPress by default are the following: Allow user to choose a password at the time of registration. Allow user to ...
3
votes
3answers
4k views

Disallow user from editing their own profile information

I'm currently developing an intranet and I am using Justin Tadlock's Members plugin to control roles and capabilities. I have created a HR role to allow Human Resources staff to create and edit user ...
0
votes
0answers
12 views

give editor permission to create user in multisite [on hold]

I require an editor role in my Multi site to have permit to create users excluding some roles (super admin and admin).
6
votes
1answer
55 views

Issue with Custom Roles in Multisite

So I've been going through hell with Custom Roles. I will try to be as descriptive as possible, to highlight my issue. Before anyone mentions it - I would like to avoid using a plugin, since that, to ...
0
votes
1answer
1k views

Restrict admin access to certain pages for certain users

As the title says, I'd like to restrict back-end access to certain pages for certain users. While doing a site with 45-50 pages, I realised it would be a much better user experience if the Page menu ...
4
votes
2answers
136 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 ...
1
vote
1answer
652 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
0answers
10 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 ...
2
votes
1answer
335 views

How can I have different groups of editors only allowed to edit certain parent+subpages?

I've tried a bunch of different plugins, including Role Scoper, Advanced Access Manager, User Account Manager and more, to accomplish this but can't seem to get it working right. Basically, the ...
5
votes
4answers
2k views

How to hide media uploads by other users in the Media menu?

Simply put - how might I completely hide media files uploaded by any other users other then themselves? Id like to disable access to these links & files since they are a way for non-admin users to ...
2
votes
1answer
630 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?
1
vote
3answers
22 views

Why are authors allowed to approve comments on their posts? How to revoke privilege?

I was under the impression that only admins/editor roles can approve comments however our authors are able to do so as well on their own posts. I want to disable the ability for an author to approve ...
1
vote
1answer
23 views

How to achieve certain page (url) accessible to certain users

I have created a download page I want it should be accessible to certain users who are logged in to my blog. No one else should have direct access to page. Is there some plugin for that? I have ...
2
votes
1answer
33 views

Custom registration URL lost when user makes signup mistake

I've followed instructions found on this site and elsewhere on the internet intended to let me give certain people a registration link that will let them sign up with a specific user role. The user ...
2
votes
1answer
69 views

Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles

I need to redirect logged-in and non-admin users, from page with id 172, to the home of the website. Note that users that are not logged in can actually see the page. add_action('admin_init', 'xyz'); ...
0
votes
1answer
19 views

Hide comments and posts posted by other user

I've created a user with role Contributor, when i logged in as Contributor all the posts and comments are listed in the dashboard. How to disable this? I just want to see the post made by ...
0
votes
1answer
18 views

How to make the Newsletter plugin visible to users with author privileges?

I'm using the Newsletter plugin and would like to make it accessible to author users. Is it possible to do so? If there's no solution for this I'll edit the editor role to make it a new author role.
-1
votes
1answer
22 views

Custom Plugin w/ Custom Post Types - Custom Posts Are Showing at all Privilege Levels - Is this possible to adjust?

We created a custom plugin. The custom plugin allows users to post specific post types. Under each user account, all of these custom post types display under the relative post type. For example, ...
2
votes
2answers
954 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 ...
2
votes
0answers
17 views

Capabilites not working [closed]

I created a custom post type: add_action( 'init', 'artwork_feature'); function artwork_feature() { register_post_type( 'artwork', array( 'labels' => array( 'name' => __( ...
1
vote
0answers
17 views

Restrict Capability of Administrator to Create, Edit and Delete Pages in Multisite

In my multisite installation, I need to restrict administrators from being able to create, edit, and delete pages. That is, I need all pages to be created/edited/deleted by superadmins while ...
0
votes
0answers
16 views

restrict contact form 7 acces in admin menu to admin role

I am using "Contact form 7" to make forms and "members" plugin to give differential capacities. The problem i have is if i give a student the capacity 'edit_post', it also gives him acces in admin to ...
0
votes
0answers
12 views

Adding Comment Author as a subscriber

Is there a way to add a comment author (the person who writes a comment) on any post as a "subscriber" role? The idea is to: Notify the comment author if there are any updates made to the post. Add ...
0
votes
1answer
23 views

Show menu in sidebar if on specific page AND specific user role (is_page, current_user_can)

I tried combining two conditions: is_page and current_user_can but it didn't work. Found an example at StackExchange where the user role was spelled out. But the Wordpress codex says "Do not pass a ...
0
votes
1answer
223 views

Restrict custom post type view by user role

I've created a custom post type and created a couple of custom user roles and want to be able to restrict the view of the post type based on the specific roles. Is there a straightforward way to ...
1
vote
1answer
599 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:
0
votes
0answers
13 views

Add capability to role for all sites in network

We are running a multisite install. I want to add the capability to edit menus for contributors. I am doing that with this code: $role_object = get_role( 'contributor' ); $role_object->add_cap( ...
1
vote
1answer
38 views

How can I check if the admin bar is visible to the current user?

I'm new to WordPress. I would like to know Is the admin bar visible to all users and roles? If not, how can I check it is visible to the current user?
0
votes
2answers
49 views

How can I change plugin to give access to editor user role?

I want to give my editors access to a settings page to a plugin I've installed on their website. As of now, it's only visible to Administrators. The plugin I'm using is uTubeVideo Gallery, and there ...
1
vote
1answer
21 views

wp_dropdown_roles() to replace option value = code

I'm trying to replace a hardcoded dropdown list of roles in a plugin. Currently this is the code: echo '<select name="xf_user_role_' . $id . '" id="xf_user_role_' . $id . '">'; ?> ...
0
votes
0answers
30 views

register_post_type “You are not allowed to edit this post.”

I am creating my own post type, here are my capabilities: 'capabilities' => array( 'publish_posts' => 'publish_review' ) Basically, if I use this - no body can publish or send for ...
0
votes
0answers
20 views

Customize Dashboard Widgets Area for the Client?

To avoid the client messing up the website I have already customized other parts of the admin backend, now for the dashboard widgets area. I don’t want to block access but rather I want to give the ...
0
votes
1answer
25 views

Hide user fields based off capability

I'm struggling with this one. I am trying to hide 2 user profile fields for the current user. Only the admin or user with "edit_users" capability should be able to view/edit these fields. Code: ...
0
votes
0answers
40 views

How can I add Menu Page to specific user?

I've installed a plugin for my client called uTubeVideo, but he has a user role of editor so the option page of the plugin won't display for him. Initially, i thought I could fix this using the if( ...
6
votes
2answers
3k 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. ...
0
votes
1answer
21 views

Author capabilities: Deleting comments on their own published posts

I know users that have role author can delete their own published posts. But if someone comments on one of their posts, does the post author have the capability to delete that comment?
0
votes
1answer
55 views

Updating User Meta with SQL Query

I have a Wordpress site that needed to have 9,000+ users imported to set up a Directory Listing. I imported them from an existing MySQL (non-wordpress) database and everything imported just fine. ...
0
votes
2answers
149 views

WordPress Multisite and S2Member - How to add new users to all blogs?

We have WordPress setup to run as Multisite and are using the S2Member plugin. We are also using a modified version of the 'Multisite User Management' plugin. The Multisite User Management has a ...
2
votes
2answers
82 views

How can I prevent a writer from being able to edit an article that has been scheduled?

In the old WordPress that I had, the writer (a type of user that could not publish) was, after an article was schedule, unable to go back to the article and edit it. But now in WordPress 8.1 they (the ...
16
votes
1answer
6k 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 ...
0
votes
0answers
52 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 to ...
0
votes
1answer
26 views

Need to create admin user without capability to create user

I need to remove user related capabilities(such as 'create_users', 'add_user', 'list_users', etc...) of an admin user. I tested the code below in an 'init' method. global $current_user; ...
0
votes
0answers
17 views

WP welcome email depending on user role

I'm looking for a way to customize the welcome email, ONLY for new users with a certain role. (I use the Gravity Form User Registration Add-On to allow visitors to vote, thereby registering as ...
0
votes
2answers
221 views

Allow Content Author to Publish, But Not Edit or Delete

I am hiring a content writer for my WordPress blog. I will be the sole blog admin. I need to define a role for this writer. I was wondering if there was a WordPress user role that will allow him to ...
2
votes
2answers
54 views

Allow user to Publish, but not Edit or Delete

I saw post Allow Content Author to Publish, But Not Edit or Delete but is not the same I need and I cannot ask there because of reputation ¬¬ I need an user that can publish any user's post but can't ...
0
votes
1answer
35 views

Multiple authors for single post without plugin

I'm new to using WordPress and so, apologies in advance if this seems like a very basic question. I want to have multiple authors for single post. I had seen Co-Author. But I don't have to use plugin ...