I need to create a custom role that is only able to edit and publish his own page (page created by admin and afterwards assigned to the user with the custom role).
I have successfully created the new role, and the user under that role is able to edit his own page and publish it, but it still has too much "power" inside the panel. The role has access to comments, post creation, page creation, tools, and to the plugin Timeline Express. I've compared to the contributor panel, and the last item (the plugin Timeline Express) is not shown on this role.
I spent some time reading through WordPress documentation and web forums in order to achieve what I'm trying to do, but I'm still no closer than I was. I know there are plugins that would give me this functionality but I need a simple thing, and I believe there's no need to, "Buy a Ferrari to cross the street".
I'm doing these changes on child theme's
remove_role( 'Supervisor'); $result = add_role( 'Supervisor', __( 'Supervisor' ), array( 'read' => true, 'edit_pages' => true, 'publish_pages' => true, 'edit_published_pages' => true, 'create_pages' => false, ) );
Could you please take a look and help me?