|
Editor role can not translate other posts
Started by: pamelaW
in: English Support
Quick solution available
Problem:
I want the editor role be able to translate the posts that are created by other authors.
Solution:
Add the code snippet below to the functions.php file of your theme:
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);
|
|
3 |
8 |
1 year, 5 months ago
pamelaW
|