Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Users with editor user role are not able to see/edit translations done by other users and instead redirected to WPML -> Translations page
Solution:
- Edit theme/child theme functions.php and place/save the following code in the file. This will allow all Editor users on the site to edit translations done by other users also.

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);

Relevant Documentation:
N/A

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by christopheG-16 1 year, 4 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
July 7, 2023 at 1:20 pm #13968281

christopheG-16

Tell us what you are trying to do?
With an Editor profile, I try to modify the translation of a page that has been opened and closed by the administrator and I am automatically redirected to the WPML>Translations page. There are no modified pages in this list of translations. I therefore do not have access to the translation of certain pages.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
pierremillotte.com

July 8, 2023 at 5:42 pm #13971859

Subash Chandra Poudel

Hi there,

You are being redirected to Translations page because as an Editor you don't have access to translations already done by other users. Only Admin users on the site have access to edit any translations on the site. That is how WPML deaflt behaviour is.

The ideal solution in this case is as an Admin user go to WPML -> Translation Management and send the page to Translation again and assign the job to the user you want to edit the translation as.

If you want however, you could also allow all editors in the site to edit Translation made by all users like the Admin user can using a custom code workaround explained in the ticket summary of the following ticket:

https://wpml.org/forums/topic/allow-any-translator-manager-to-edit-any-existing-translated-page/