[+] Allow editors to edit completed translations

Translations that are already completed can only be edited by Admins and original translators.

You can add the following code to your child theme’s functions.php to allow all editor users to edit all translations on the site.

add_filter('wpml_user_can_translate', function ($user_can_translate, $user){
if (in_array('editor', (array) $user->roles, true) && current_user_can('translate')) {
return true;
}
return $user_can_translate;
}, 10, 2);

Support Thread Example

Let us know if this snippet is not working for you:

This snippet doesn’t work
0 0 votes
Article Rating
Subscribe
Notify of
guest

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Amit
Admin
2 years ago

Nice!