Tagged Questions
0
votes
1answer
27 views
Roles and Capabilities in Custom Post Types
Is there a way to create one role with one capability and apply it to some of the custom post types?
What I am doing right now is ending up with applying capabilities to all of the posts..
creating ...
0
votes
0answers
24 views
Create new capability but restrict to specific page
I am using a custom upload box to allow a subscriber to upload their own avatar. currently the upload is failing as subscribers do not have media upload permissions.
I do not really want to enable ...
0
votes
0answers
25 views
How to make a plugin appear only to a certain role of user?
I'm using a plugin called "Team Result", to create team results and things like that. It appeared on the dashboard for admin(me). As you can see in this print ...
1
vote
0answers
30 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 ...
0
votes
0answers
70 views
Custom Theme Options page permission issue
I've created a custom theme options page for my theme. I've added the manage_options and edit_theme_options capabilities to the editor role and those are definitely working properly. I can save items ...
0
votes
0answers
44 views
pages not found for custom user role
I've created a custom user role for my clients to allow them to manage theme options, and all the other capabilities that the default admin has with the exception of several capabilities that would ...
0
votes
0answers
16 views
Allow Authors to add category in Multisite Inatllation [duplicate]
I am looking for a way, to allow authors, to add categories. Refering to this post: How would I increase the Author Role to be able to add a new category?
I tried this function:
function ...
0
votes
0answers
30 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
63 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
90 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 ...
0
votes
3answers
237 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 ...
1
vote
1answer
229 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 ...
0
votes
1answer
46 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
193 views
How to check user role?
I have functions that have to execute based on the user roles. How do I check the user role so that I can insert the respective function under their role?
EG.
if ($_GET['role'] == "free member" ) ...
0
votes
2answers
606 views
reset the users roles - is there a way to do this?
any way would be acceptable for me,
even hacking the DB.
I have messed up the roles with MEMBERS plugin, and i need a way of reseting the roles somehow. i can't seem to find a proper way.
...
2
votes
1answer
473 views
Prevent or Disable creating new users or changing roles of existing users to Administrator
I am trying to give more permissions to the editor role by giving it access to create user accounts. See the code below. But I would like to prevent it from creating or editing existing users with the ...
0
votes
1answer
117 views
Removing capabilities from cloned admin role
I'm trying to create a new role within my wordpress theme that has almost all the same rights as an admin. Basically, it's a cross between Editor and Administrator. One of the issues I'm having is ...
2
votes
1answer
209 views
Users roles, make a page belonging to multiple users
I have a website with a lot of users.
They are all editor (with same custom roles). They can add page and post, and edit only their own page/post.
But some users need the ability to edit some ...
1
vote
2answers
630 views
What action should I hook into when adding roles and capabilities?
I'm going to be using add_role() and $role->add_cap() to set up a new custom role and attach a new capability to existing roles.
I'm wondering where the best place to do this is? Obviously I can do ...
1
vote
3answers
252 views
Using author_can() on custom post types in WordPress
I'm trying to conditionally display some content in a theme using custom roles and capabilities. First, I define a custom role:
add_role('free_vendor', 'Free Vendor Listing', array('read', ...
3
votes
2answers
756 views
Associating an “author” with a custom taxonomy
I have a custom role, "Ministry Representative", which is able to log in and create and manage their own "Opportunities" and "Events", which is each a custom post type.
On the front end of the site, ...
11
votes
4answers
8k views
How to change a user's role?
I have custom roles in my setup and I want to be able to automatically change a user's role thru a function. Say user A has a SUBSCRIBER role, how do I change it to EDITOR? When adding a role we just: ...
3
votes
1answer
419 views
Roles & capabilities GUI that does not create separate table
After reviewing plugins that deal with user roles and capabilities I concluded that I might be better off just hardcoding my settings into my functions.php file. This actually worked out well for me ...