How might I enable a user to view Draft pages from a different Author, without the ability to edit?
How might I enable a user to view Draft pages from a different Author, without the ability to edit?
How might I enable a user to view Draft pages from a different Author, without the ability to edit?
edit slider plugin capability for custom_role
Understanding capabilities parameter in register_post_type()
How to disable plugin capability : “create new category”
$user = wp_get_current_user(); if (!current_user_can(‘activate_plugins’)) { add_action(‘admin_head’, ‘removeCategories’, 100); function removeCategories() { echo “<style>#product_cat-23{display: none !important;}</style>”; } } It’s admin_head for admin UI.
current_user_can() returning true for capability when the user and role do not have the capability
I believe you’d need to modify user roles on each site individually (if I’m understanding your question correctly). There’s a great plugin I use frequently called WPFront User Role Editor that allows you to check/uncheck user capabilities like you mentioned. The free version should be fine for what you’re trying to do. I personally use … Read more
You can create capabilities for each custom post type and add this to the different roles; see this answer from an question here.
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