This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing issues with a custom user role 'Shop Manager' in WooCommerce, which could not edit translations or behave as an editor.
Solution:
1. We identified that this was a known issue and it has been resolved in the latest WPML version.
2. We recommended updating WPML to version 4.6.9, which can be manually downloaded from the client's WPML account.
3. We provided a code snippet that could potentially resolve the issue if the client did not want to update:
add_filter('wpml_user_can_translate', function ($user_can_translate, $user){<br /> if (in_array('shop manager', (array) $user->roles, true) && current_user_can('translate')) {<br /> return true;<br /> }<br /> <br /> return $user_can_translate;<br />}, 10, 2);
4. We also suggested emptying the translation queue by going to the Jobs tab and filtering the jobs.
5. If the client had already added custom code in the theme's functions.php file or added Jac to the translation managers list, we advised removing them after the update.
If this solution does not seem relevant to your situation, please open a new support ticket with us.
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 1 year, 6 months ago.
Assisted by: Ilyes.