How do I modify the user role ‘subscriber’ to allow the user to delete posts
How do I modify the user role ‘subscriber’ to allow the user to delete posts
How do I modify the user role ‘subscriber’ to allow the user to delete posts
Adding plugin editing capability for Author
Not sure is that a rule or just something that happens to work that way, but most of function that take capability as argument also accept roles in same argument. If I am not mistaken passing lowest role you want to grant access (‘author’) should work for that role and upwards. Please test before use.
Might you need one of these Admin capabilities? delete_others_pages delete_others_posts delete_pages delete_plugins delete_posts delete_private_pages delete_private_posts delete_published_pages delete_published_posts Unless you’ve modified the default capabilities for Administrator, to remove one or more of these capabilities, you should be able to delete any Post (of any Post-Type) as an Admin user.
There’s user_register.
Code you are after: <?php $wp_user_search = new WP_User_Query( array( ‘role’ => ‘administrator’ ) ); $admins = $wp_user_search->get_results(); $admin_ids = array(); foreach($admins as $admin) { $admin_ids[] = $admin->ID; } $args = implode(‘,’, $admin_ids); query_posts(“author=$args”); ?>
you can use the author parameter of WP_Query here is a simple function to get you going with a hook to a shortcode and another hook to render this shortcode inside a simple text widget: function ten_latest_of_contributers($atts = null){ global $post; //store the current post data $temp = $post; $contributors = get_users(array(‘role’=> ‘contributor’)); //then create … Read more
By default only super admins/administrators can edit plugin/theme settings. http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table If you want to give access to plugin/theme settings (or other stuff) for an editor you can add a capability to a role. How can I allow the Editor Role to change Theme Settings?
I don’t think you need wordpress multisite to implement this feature. Just use normal wordpress. I recommend you two plugins. 1) Role scoper 2) Adminimize Make sure you enabled user registration in Admin -> Settings -> General All the best
You could try running this once in your functions.php $wp_roles = new WP_Roles(); $wp_roles->remove_role(“your_role”);