I have a user with the role "editor" who I assigned as a translation manager. I am aware that it is intended behavior, that the user cannot translate posts of other users by default. So I have added the hook as described here: https://wpml.org/forums/topic/editor-role-can-not-translate/
The hook, however, does not show up in the documentation nor does it work. The user still is unable to edit translations. Immediately returning true with this hook also doesn't seem to work, making me wonder if the hook even exists? Or has it been removed by now? If so, how can I resolve the issue with editors unable to edit posts of other users?
This WordPress function should directly rebuild the roles and their capabilities. Please give it a try and check again if the Editor is able to open the translations now.
Thank you for your reply!
Unfortunately I cannot reset roles/capabilities since we do customize some of the roles. Here's the relevant (enabled) capabilities of the "editor" role:
The fact that you are using a custom solution to create user roles and permissions may be related to why the snippet does not work.
May I kindly ask you to try to replicate the issue in this clean Sandbox? hidden link. Please let us know the exact step-by-step you're following as well.
We noticed that this issue affects all websites we developed for our clients. A lot of them do not utilize any custom roles/capabilities.
As requested, I have set up the sandbox you provided with the same setup we have for our websites. The issue exists on the sandbox as well.
There's a new user called "employee" with the role "editor", which is also configured as a translation manager. Username "employee", Password "employee".