This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to add themselves as a translator on their WordPress site using WPML, despite trying to assign the necessary capabilities via custom code. Solution: We resolved the issue by temporarily changing the client's user role to Editor and then updating their profile. After this, we reverted the role back to the original setting and updated the profile again. This process refreshed the necessary capabilities, allowing the client to be added as a translator.
If this solution does not resolve your issue, or if it seems outdated, we recommend checking the related known issues and verifying that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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.
Background of the issue:
I am trying to add myself as a translator on my WordPress site using WPML. The issue can be seen on the page: hidden link. I expected to see myself in the list of existing users that can be assigned as a translator. I also tried adding the following code to resolve the issue: // add myself as translation editor function add_wpml_manage_translations_cap() { $role = get_role('administrator'); if ($role) { $role->add_cap('manage_translations'); } } add_action('init', 'add_wpml_manage_translations_cap');
Symptoms:
I can't add myself as a translator. I can add a different admin, but not myself. I tried logging out and logging back in as the other admin, but I still could not be added as a translator.
Questions:
Why can't I add myself as a translator?
Is there a specific setting or permission I am missing?
How can I add myself as a translator.
I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated, if possible—to assist you more effectively. When you log in to leave your next reply, you will find the required fields below the comment area. The information you provide will be private, meaning only you and I can see and access it.
Would you mind allowing us to install a database management plugin, such as Adminer? This would also enable us to check the values in the database.
Thank you so much for your reply. We are mid-translation — please leave open for a few days and I can give you access when the vendor is finished. We can’t disrupt right now.
As suggested, I created a new admin user. The ONLY user who can't be added as a translator by any admin user is my primary username. I never appears as an option or on search.
I commented out the code you had previously added because it is not needed while trying to resolve the issue before opening a support ticket.
I managed to fix the problem by temporarily switching your user role to Editor, updating your profile, then reverting the role and updating the profile again. These actions seem to have refreshed the necessary capabilities.