Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 1 year, 9 months ago.

Assisted by: Bobby.

Author Posts
September 19, 2023 at 9:30 pm #14425529

Mason Grandusky

Is there a setting or a method to allow those with an Editor status to have access to WPML plugin?

September 20, 2023 at 12:08 am #14425705

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

While there is no feature to do this directly in our plugin you could try using the following snippet provided by one of our supporters:

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

Add this code to your theme's functions.php

NOTE: We cannot offer custom solutions in the forum and the above is a solution shared by one of our supporters without the guarantee that it will work with the latest versions of WPML or be maintained by our team

https://wpml.org/forums/topic/editor-role-can-not-translate/

The topic ‘[Closed] WPML Access’ is closed to new replies.