Why do comment moderators need to have all create/edit/delete toboth posts and pages?

Ordinarily WordPress only allows Editors and Administrators to moderate comments, and both roles require those capabilities. This page from the Codex does an excellent job of explaining roles and capabilities: https://wordpress.org/support/article/roles-and-capabilities/ You can manually create a new Role and assign to it only the capabilities you want the Role to have, so that those you … Read more

How can I have different groups of editors only allowed to edit certain parent+subpages?

UPDATE – this is easy to do with the press permit plugin, I recommend it for any setup like this To get this working I had to do a couple of things: Default all pages/posts/categories ‘revisor’ (via Revisionary plugin) users to be restricted to ‘WP_Administrators’ Create a “User Group” for each department ie: ‘Conference Services … Read more

Let new user role to ‘edit_others_posts’ of other user role, not of its own type

First add capabilities to the roles like this add_action( ‘after_setup_theme’, ‘add_caps_to_custom_roles’ ); function add_caps_to_custom_roles() { $caps = array( ‘read_cpt’, ‘edit_cpt’, ‘edit_others_cpt’, ); $roles = array( get_role( ‘third_party’ ), get_role( ‘data_entry_operator’ ), ); foreach ($roles as $role) { foreach ($caps as $cap) { $role->add_cap( $cap ); } } } THEN /** * Helper function getting roles … Read more