Tagged Questions
0
votes
1answer
22 views
Completely remove ability to create users?
I have added the code below to a plugin:
add_action( 'admin_init', 'remove_add_users_cap' );
function remove_add_users_cap() {
$role = get_role( 'administrator' );
$role->remove_cap( ...
2
votes
2answers
139 views
Adding capabilities to super admins
I'm developing a plugin that uses custom capabilities. Some of those capabilities need to be added to all users who are super admins. Currently, I'm using this code:
$supers = get_super_admins();
...
0
votes
1answer
87 views
How to give “author” user role appropriate capabilities to add PollDaddy polls? WordPress multisite
At the moment, users with role "Author" can only view but not add or edit polls. "Editor" and "Administrator" (site administrator) can add and edit polls however.
This is despite the fact that I ...
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 = ...
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 ...
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 ...
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, ...
1
vote
1answer
784 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 ...
2
votes
3answers
390 views
What are the differences in capabilities between the super-administrator and administrator?
What are the capabilities that a super-administrator has that an administrator does not have?
The codex page on user capabilities does not have a list of capabilities of the super-admin. It lists ...