The capabilities tag has no wiki summary.
0
votes
3answers
217 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 ...
2
votes
1answer
122 views
Allow Administrator role access to custom capabilities
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 ...
2
votes
3answers
641 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
0answers
110 views
vertical news scroller permission [closed]
I used vertical news scroller plugin...but problem is only admin can published news. I want editor also published news. but I don't know how to hack plugin. Here is code...
function ...
1
vote
0answers
349 views
Wordpress capability_type arguments
I don't know how to figured out what's wrong with my code, Why Custom Post Types "Book" doesn't show on my dashboard, I logged as Admin and I use latest WordPress installed 3.4.1
Here with my code
...
4
votes
1answer
266 views
Custom post type capabilities
I've got a somewhat unique scenario that I would appreciate some assistance with.
I have a custom post type, coin, for content that is automatically created by an custom import process. I would like ...
0
votes
1answer
44 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. ...
0
votes
1answer
57 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
1answer
623 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 ...
4
votes
1answer
304 views
Restrict Admin Capabilities in MultiSite
update_core
update_plugins
update_themes
install_plugins
install_themes
delete_themes
edit_plugins
edit_themes
Hi, I want to restrict those capabilities to user_id = ...
1
vote
1answer
106 views
Organize WordPress site, so it can maintain with huge database
Intro:
Hello, I am making coupon website and I need an advise. So, the structure at the moment is like this:
Coupons ( posts )
Categories of coupons ( categories )
Shops ( tags )
In the near ...
0
votes
0answers
14 views
Limit selectable roles when promoting [duplicate]
Possible Duplicate:
How to remove administrator role in settings -> general -> New User Default Role?
I'm working with admin, editor, author and subscriber roles and would like to add ...
2
votes
1answer
207 views
Temporary capability for current_user_can()
Is it possible to intercept calls to current_user_can() ?
Example:
current_user_can('rate', $post_id)
There's no "rate" capability registered, but could I somehow hook into that function and do my ...
2
votes
1answer
304 views
How do I fix problems with users not being able to publish and only submit for review after upgrade of Multisites installation?
We have a previous WPMU installation that has been upgraded to a WordPress Multisites installation. Since upgrading to 3.3.2 from 3.2.1 we have problem with editors/admin not being able to post on ...
0
votes
1answer
1k views
Why is wp-login redirecting to the home page when I use this function?
I'm perplexed; I can't see where I'm going wrong with this code. It should redirect any subscriber-level users back to the site home page if they try to access anything within /wp-admin - but not if ...
0
votes
2answers
904 views
Custom wordpress admin page/url “You do not have sufficient permissions to access this page.”
Here's a custom wordpress admin page I created:-
// code located in my custom plugin's php file
function my_special_function(){
echo '<div> Hello World </div>';
}
function ...
3
votes
1answer
694 views
add_menu_page permissions - what am I doing wrong?
I am running a fresh install of Wordpress 3.3.2 and the only plugin enabled is one I'm developing, but I can't seem to get past a permissions issue in add_menu_page. With the exception of using ...
3
votes
4answers
1k views
Select subscriber as author of post in admin panel?
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 ...
0
votes
1answer
245 views
insufficient permissions; coding an action for plugin governed by custom capability
I'm working on a modification to WP Super Cache which adds two new capabilities to give more control of restriction to certain features. My goal is to a) allow Editors to see the Delete Cache button ...
1
vote
2answers
86 views
Making a plugin only available on the front-end for the logged in super admin
I made a little plugin that enqueues 1 .js file and 1 .css file into a theme's front-end. All it does it load a grid on top of the theme so I can visualise the design.
If this plugin was activated ...
0
votes
2answers
258 views
How to hide plugin options for editors via functions.php
I've read the entry Best Collection of Code for your functions.php file, it really help me a lot.
I only got a question, is there a way to hide some plugins options (in their respective ...
1
vote
1answer
174 views
How-to delay the capability to publish posts?
Spam has gotten a bit crazy so it would be nice if new users have to wait a week to post something.
I use buddypress and all new members have the role of author. The site is more like a forum with ...
1
vote
1answer
350 views
can't see custom post content filtered under “mine” filter in admin panel
after creating a custom post type with custom post type UI plugin, and
after creating the capabilities for a new role to edit, delete and publish it's own custom posts with User Role Editor plugin, ...
2
votes
1answer
92 views
Problem using role_has_cap hook
I'm trying to filter a capability check in order to work around the lack of filters to customize the user edit page in the admin area. But I can't seem to add filters to a hook, and I'm sure I'm ...
0
votes
1answer
211 views
wp_redirect and current_user_can issues
Put simply, I'm trying to redirect the user after clicking a 'Save Changes' button. The plugin uses custom capabilities, and so I want to check the current user has the correct capabilities before ...
0
votes
3answers
1k views
How can I restore admin capabilities?
So yeah, I'm a genius. I managed delete all my admin capabilities (thank you very much Membership plugin). I could restore them, ...if I had admin access, lol.
Anywhoo, how can I give all my ...
1
vote
1answer
143 views
How do you set up a WordPress blog with multiple authors to allow something like StackExchange's “community wiki” feature?
I'm thinking about having a blog with multiple authors. In the WordPress Roles documentation, authors can publish posts but only edit their own and not posts by other authors, which is what I'm ...
0
votes
1answer
544 views
Create a User Role with permissions to only upload files to the media library?
Some of the employees at my organization need to be able to upload files to a folder and share a link with others. It’s primarily documents like pictures, pdf’s and Word documents. And instead of ...
4
votes
2answers
2k views
How do I create a custom role capability?
I wish to create a custom capability for accessing the interface of my plugin.
Should the plugin manage adding this capability to all the administrator accounts on activation?
If so: Does WordPress ...
2
votes
1answer
162 views
Add user capability and check against it
I just realized the following:
// Call the current user info
global $current_user;
// Add a capability
// and set the 2nd argument ($grant) to false
$current_user->add_cap( 'some_cap', false );
...
0
votes
1answer
273 views
User role editor - Add download files capability
I've got User Role Editor plugin installed and i want to add a capability for download files.
I've got some downloads in a custom post type called 'products'. I want only people who are logged in to ...
3
votes
1answer
225 views
The 'user_has_cap' hook seems to take two page loads to trigger
This question relates to another question I asked recently (http://wordpress.stackexchange.com/questions/29009/how-to-assign-specific-users-the-capability-to-edit-specific-pages-posts-cus/), the ...
0
votes
1answer
106 views
How to add post of custom type to a category with custom type capabilities
I have created a custom post type 'shows'. And I am using the capabilities argument to create my own custom capabilities. My aim is to have a user (show_manager, say) who can only edit/create shows ...
4
votes
2answers
731 views
How to create a clone role in wordpress
How to create new role with same capabilities of existing role.
Eg: I would like to create a new role with same capabilities of administrator or editor and so on..
1
vote
1answer
937 views
How do I restrict user access to plugins?
I have created a new user role in my functions.php and set up booleans for each standard Wordpress capability (as listed on [the Wordpress ...
4
votes
1answer
2k views
How to assign specific users the capability to edit specific pages / posts / custom post types
I'm trying to implement what seemed like a relatively straight forward idea, basically I am building an access control plugin to control viewing and editing of a custom post type (in this case ...
3
votes
2answers
3k views
Possible to hide Custom Post Type UI/Menu from specific User Roles?
What I'm looking to do is completely hide the UI for a custom post type from specific user roles...Ive previously found many resources on how to disable access to using those CPTs but nothing that ...
4
votes
1answer
532 views
Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding 'capability_type' parameter
I got quite confused with Custom Post Type (CPT) 'capability_type' parameter and adding generated capabilities to a role.
So I've got a CPT called 'external_role' registered as following:
...
6
votes
3answers
2k views
Groups of capabilities: users with multiple roles?
I'm pretty sure I understand the roles and capabilities setup in WordPress: granular capabilities, grouped together in roles that can be assigned to users. Code should check the granular capabilities, ...
3
votes
1answer
161 views
Can someone explain Wordpress caching, and what's the best in my scenario?
I'm creating a website that has two basic user groups: Subscribers and Editors. Bot can create posts via a custom form using wp_insert_post(), but Editors are allowed to mark a post as private, ...
0
votes
1answer
62 views
How can I restrict changing the max nested comment levels option to super admins?
I have an older theme that I've modified to support threaded comments. I would like the individual admins in my multisite install to be able to choose whether threaded comments are enabled. However, ...
0
votes
0answers
436 views
User roles and custom post type confusion [closed]
I am getting a bit confused by a complex user roles situation and hoping someone can clarify.
My site has content added by student Film Directors. I created a new user role ('Directors') so that each ...
5
votes
3answers
2k views
Is there way to rename user role name without plugin?
Is there anyway to rename a user role name via hook, instead of using plugin?
2
votes
1answer
390 views
How to programmatically add a user to a role?
I want to programmatically add the current user to a role and also remove the current user from a role in a php page i created . am really stuck. thanks in advance
0
votes
2answers
101 views
Hiding custom theme functionality using capabilities
have spent half an hour hunting around on Google to solve this so any ideas greatly appreciated!
I'm using a bought theme running wp3.2 and the theme includes a few extra features Testimonials, ...
0
votes
1answer
180 views
user_can() not working for comment authors
I'm trying to do some capability checks on comment authors using the user_can() function, but for some reason it isn't working at all.
I have a custom capability setup with the Role Manager plugin ...
0
votes
1answer
524 views
How do you add custom taxonomy capabilities exactly?
I can't see to get it. The capabilities fail to appear when using plugins like "Capability Manager" or "Members" to view a list of available capabilities.
This is the code I'm attempting to use:
...
-1
votes
1answer
81 views
How come I see a manage_categories capability but not a manage_tags capability for any users?
Using plugins like "Members" or "Capability Manager", I don't see any such manage_tags capability. Shouldn't there be one like there is manage_categories?
EDIT: I think I figured it out. manage_terms ...
1
vote
2answers
474 views
When you create a custom post type, does that also create capabilities for editing/deleting that post type automatically?
For example, if I create a post type called "destinations" does that automatically create capabilities like "edit_destinations" or "delete_destinations"?
1
vote
1answer
783 views
How to enable a site administrator to edit users in a WordPress network/ multisite setup?
I have a few sites in a network. I don't want the site administrators to manage things like network plugins, but I would like them to be able to edit profiles of all network users, not use those on ...