WordPress uses a concept of Roles, designed to give the site owner the ability to control what users can and cannot do within the site. Each role is allowed to perform a set of tasks called Capabilities.

learn more… | top users | synonyms (1)

4
votes
0answers
181 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 ...
3
votes
0answers
235 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
19 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
24 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
51 views

Cannot Create new Post within Custom Post Type

I have a custom post type registered and when registering I am using... if( !post_type_exists( 'email_template' ) ) { register_post_type( 'email_template', array( ...
1
vote
0answers
48 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
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
51 views

Usage of current_user_can()

I have a custom post type company, which has its own custom set of capabilities, including read_company, edit_companies, publish_companies, and delete_companies. In order to implement a role-based ...
1
vote
0answers
91 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
50 views

Create a custom capability to allow an 'Editor' to edit only 'Subscriber' users

I want to create a new "Moderator" role (in between Administrator and Editor), that can edit only "Subscriber" type user accounts. I can create the role and add existing wp capabilities, but I don't ...
1
vote
0answers
343 views

Restrict edit, but allow preview for custom post status

I am developing a Wordpress site with Edit Flow plugin, so I can create custom post statuses to manage author and contributor posts more easily. So I have created custom post status and I've got ...
1
vote
0answers
116 views

Wordpress capabilities on pending post status

I have user with contributor user role. In default if you publish article as contributor you can only view it and you can't delete or edit it. But when you submit new post for review, you can do all ...
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
109 views

Unable to delete custom post types, confusion around capabilities

So I'm working on a plugin for creating a questions/answers system that's as simple and well-integrated as possible (not unlike this site) but am stuck at the creation of the custom post types. You ...
1
vote
0answers
63 views

Is it wise not to use only meta capabilities for certain basic post types?

I've been a WP developer for a couple of years now but only recently has the concept of meta vs. primitive capabilities really "clicked" with me. I'm building some tools right now to allow easy ...
0
votes
0answers
17 views

Multiple Authors on Single Post

Does anyone know how to assign multiple Users as authors of single individual posts (even single custom post types)? I want more than just displaying as tags the list of authors. I am looking at the ...
0
votes
0answers
14 views

Custom post type shows all if no post from user

I'm trying to achieve this (without using any plugins): Adding custom post type Allow subscribers to create, edit, view their own posts "only" in wp-admin I'm using this code: ...
0
votes
0answers
13 views

Temporary Test WordPress Multisite Instances

What I need is a solution to setup a way for clients to test a plugin, in the backend, on a demo wordpress installation. Something like a temporary testing instance (wordpress multisite subdomain). ...
0
votes
0answers
18 views

Problem with the standard example of media_handle_upload

I have been trying to make a custom tab for the media uploader to treat some files and looked for a way to do such a thing, and found an example of it in the media handle upload page. The code I used ...
0
votes
0answers
18 views

Custom Post Type - after disable 'Add New', I can't edit and delete post

I need to disable 'Add New' button for my CPT, but when I add: 'capabilities' => array( 'create_posts' => false, 'edit_posts' => true, 'edit_post' => true, 'delete_post' =&...
0
votes
0answers
30 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
19 views

Assigning custom capabilities restricting CPT usage

I want to activate my plugin with 2 or more CPTs. Everything goes fine with 'capability_type'=>'post'. Now I want to incorporate custom capabilities to my CPTs and want to assign 'em to the admin ...
0
votes
0answers
30 views

Custom post type only works when role has edit_posts capability

I have been trying to create a custom post type 'book'. Added capabilities when registering custom post type. All works well except I have to give user the permission 'edit_posts' when accessing my ...
0
votes
0answers
35 views

How to add a dynamic image as a widget in dashboard

I'm trying to add an image as a widget on the dashboard screen like this: This is an ads image, which will be seen only by users with read role and that too will be changed every month. Already I ...
0
votes
0answers
16 views

Disable edit certain pages for author

How can I restrict editors to edit some pages (ID) in my wordpress site? The author can see those pages but should hide edit option. I have tried this snippet but it does not work: function ...
0
votes
0answers
18 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
19 views

Creating a project management plugin, projects are only seen/managed by admin

I went to make a WordPress plugin to manage my projects. I don't want to make my projects as public, only I(super_admin) should be able to see/manage it. Here is what I need: Adding Client ( as CPT ...
0
votes
0answers
12 views

Remove QE options and edit link from the title for a custom status and based on capability without js

I'm trying to remove the quick edit option and the edit link on the title of the post in the admin post list. I'm trying to do that on user capability and a custom status. Basicly when a post have ...
0
votes
0answers
30 views

what is 'capability_type' and 'capabilities' for 'register_post_type'?

My English sucks..I dont understand what the 'capability_type' and 'capabilities' do in 'register_post_type' after reading the codex.Is it for the admin or for the reader?and what exactly does those ...
0
votes
0answers
50 views

How to add 'Site Identity' capabilities to customisation for editors

I was able to give most capabilities to editors for the Customisation. However I'm lacking the Site Identity capability. I found this thread How to change in customizer the "site identity&...
0
votes
0answers
51 views

Getting Cheatin' Uh error when attempting to do anything theme related

I'm getting the "Cheatin'uh" error message when I try to preview or customise themes in any way, which is really rather annoying! I have done (or rather my techie husband has!) the following, based ...
0
votes
0answers
29 views

Custom role cannot upload media in new custom post page

Sorry if this question is duplicated. It seems to be similar to this question (Custom post type media upload error with custom user role) but I couldn't make it work. I have a custom role called "...
0
votes
0answers
63 views

Custom user role capabilities for Custom Post Type

I've created a custom user role using WPFront User Role Editor to allow access to only one Custom Post Type (job_listing, job_listings). It works almost great, however, it's not displaying "All Job ...
0
votes
0answers
34 views

user_has_cap filter crashes site when doing get_posts()

I can not understand why the site is crashing when adding this block of code: function demo_function( $capabilities ) { global $pagenow; if ( $pagenow != 'post-new.php' ) { ...
0
votes
0answers
21 views

how to create page using add_menu_page?

how to create a new page in the administration menu, which will include (appearance -> header) and (Settings -> General) on one page?
0
votes
0answers
32 views

Are dashboard widget settings global?

I followed the example of how to create a create a dashboard widget from WordPress' site to make a widget that reads an RSS feed and displays the items (yeah I know there are plugins that do this but ...
0
votes
0answers
26 views

Wordpress Premium Access

I'm new to PHP and Wordpress. I actually achieved pretty much until now, but now I just cant figure out how to do one thing: Grant registered users access to "Additional Content", I don't know why, ...
0
votes
0answers
135 views

Front-end Posting: Allowing user to view/edit their pending post

So, I have a front end set up. I can write and submit a post. I have a list of my published and pending posts, which I can view and edit as an admin. I created a subscriber, but 'he' cannot access '...
0
votes
0answers
282 views

get user role value as a string from wp usermeta table into custom script

Just came accross while retriving wp_capabilities from wp_usermeta table, this returns serialize output a:1:{s:13:"administrator";b:1;} When i unserialized, it gives an array Array ( [administrator]...
0
votes
0answers
24 views

Adapt capabilities to specific users “IF”

I have a very specific issue with my Wordpress website. I use custom fields to assign some users to "group managers" and would like to prevent other "group managers" to change this custom field. ...
0
votes
0answers
78 views

Role capability delete multiple post type posts doesn't work

I am making a new role called "sales" where I add capabilities to, so the sales people only can read, edit and delete leads in the admin panel. Everything works fine, except that I cannot select ...
0
votes
0answers
80 views

Add user role and add capability to view the plugin from that role

I have created a different user role. I want that role to view my plugin. I have tried adding the capabilities to that role. But it doesn't show up on their dashboard. What to do?
0
votes
0answers
2k views

Add Media Upload Capabilities Needed for Custom Role for non-Posts

I finally managed to update an old WP 3.3.1 site to WP 4.1 with few issues, but one unexpected change seems to have come about with relation to file uploads. In the WP 3.3.1 version of the plugin, I ...
0
votes
0answers
229 views

add_role user capability not working

I added a role this way: add_role( 'paar', __( 'Tanzpaar' ), array( 'add_users' => false, 'create_users' => false, 'delete_users' =&...
0
votes
0answers
46 views

Users can only save their draft once before saving for revision

I use the Members Plugin and Custom Post Types. I created a role and want them to contribute posts (within this Custom Post Type musician) but don't publish them. Additionally I want to give the ...
0
votes
0answers
242 views

Hide unapproved comments on front end of wordpress

I used this post I modified it to hide rather than show to contributors unapproved comments. This goes for unapproved comments on the contributor's own posts. I also used Adminimize to hide comments ...
0
votes
0answers
86 views

Adding post tags without capability edit_posts

I have a custom role called Event Contributor whose capabilities are limited to the post type "events". The role does not have the capability "edit_posts". The post type "events" has custom ...
0
votes
0answers
267 views

Assign Role and capablitis on frontend registration

I have created 2 custom roles "customer" & "employee" form admin "members" plugin. I am trying to assign these to user registering for site according to options (customer & employee) they ...
0
votes
0answers
74 views

Permissions with Custom Post Types

Afternoon everyone. I made a theme for a friend's site using a custom post type called "fixtures" but I can't get it to allow users listed as "Writers" to be attributed as the authors of these posts, ...