Tag Info

New answers tagged

2

Yes, that’s safe. I have done that. The core does not rely on the existence of such a user. There might be some broken plugins whose authors think user 1 is always there and an admin, they will not work properly. On the other hand, this is a very simple test for a plugin: If it doesn’t work after you have deleted user 1, it is probably very insecure, and ...


1

The ability to set comment status is tied to the "edit_comment" capability, which is a meta-capability in WordPress. It maps to the "edit_post" capability, which is another meta-capability that varies depending on whether a post is published or not. In the end, if a post is published, then edit_comment ends up mapping to "edit_published_posts" for the ...


0

You can remove the capability from the role entirely. It you can replace the PUT_ROLE_HERE with your role: $edit_role = get_role(PUT_ROLE_HERE); $edit_role->remove_capability('moderate_comments'); As @SierraTR says, only Administrators and Editor have access to moderate comments, unless you have some kind of Role Plugin.


0

According to the Codex: Roles_and_Capabilities both the Admin and Editor roles have the capability of managing comments. At the bottom of that Codex page under Resources there are a few plugins listed for easily changing the capabilities of user roles ( other than Administrator ) and there are references to functions you can use to change the capabilities ...


0

The plugin contains for example these lines: add_menu_page('Newsletter', 'Newsletter', ($this->options['editor'] == 1) ? 'manage_categories' : 'manage_options', 'newsletter_main_index'); add_submenu_page('newsletter_main_index', $title, $title, ($newsletter->options['editor'] == 1) ? 'manage_categories' : ...



Top 50 recent answers are included