Sync roles across several plugins
Something you may use to accomplish this a plugin with a role and capability manager. You could then assign whatever permissions to either role you want, or create a new role altogether.
Something you may use to accomplish this a plugin with a role and capability manager. You could then assign whatever permissions to either role you want, or create a new role altogether.
Download User Role Editor and uncheck the edit others post
You’re adding the menu page using the “administrator” role. Is the account you’re using an administrator? Note: 1) You should be using an appropriate capability, rather than a user role. Generally, the appropriate capability for editing Theme options is edit_theme_options. 2) There is a known bug with WordPress, in that currently, manage_options is required for … Read more
There’s another great article here. They walk you through the 4-step process that they used to set it up.
You are correct that the read capability is intended for the frontend. The capability you’re looking for does not exist. Additionally, if it did exist ( which it does not ), the WP Admin user interface does not provide a UI for viewing/reading posts, only addition and editing. If you want it, I’m afraid you … Read more
Please update the code as below add_action( ‘admin_menu’, ‘remove_menus’ ); function remove_menus(){ $user = wp_get_current_user(); $role = ( array ) $user->roles; if($role[0]==subscriber) add_menu_page( ‘edit.php’ ); //dashboard }
Must be a problem with the surrounding code, your add_menu_page code works fine inside my test code, i can see the item as an admin or editor. add_action( ‘admin_menu’ , ‘admin_menu_new_items’ ); function admin_menu_new_items() { add_menu_page(‘Calendar’, ‘Calendar’, ‘edit_posts’, ‘wp-eventcal/eventcal-manager.php’); } Works just fine for me.. Are you using any plugins for managing the admin menu, … Read more
I have found the cause of this problem. The reason is due to the capabilities argument in the category taxonomy. i.e. array( ‘manage_terms’ => ‘manage_categories’, ‘edit_terms’ => ‘manage_categories’, ‘delete_terms’ => ‘manage_categories’, ‘assign_terms’ => ‘edit_posts’, ); So one work around (though not a very good one – and certainly not for use in plugins!) is to … Read more
My fist suggestion to this type question is to use Justin Tadlock’s Members Plugin. It should handle what you are asking, and it’s easy to set up. It has several pre-defined roles and capabilities that will probably cover what you need. If not, check out the forums and doc’s for how to customize it even … Read more
So I figured out the problem here. When you use the members plugin and create roles for custom post types you need to create a function which maps out your meta capabilities. http://justintadlock.com/archives/2010/07/10/meta-capabilities-for-custom-post-types