Skip Navigation

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

Problem:
The client is unable to see the full WPML menu in the WordPress Admin. They only see the "Translations" menu item instead of the full list including "Translation Management", "Languages", "Theme and plugins localization", "WP Menus Sync", "String Translation", "Taxonomy translation", "Packages", "Settings", "Support".

Solution:
First, ensure that your WordPress user account has admin privileges. If you are already an admin, we recommend you add the following code snippet to your theme's functions.php file:

function wpmlsupp_1706_reset_wpml_capabilities() {
    if ( function_exists( 'icl_enable_capabilities' ) ) {
        icl_enable_capabilities();
    }
}
add_action( 'shutdown', 'wpmlsupp_1706_reset_wpml_capabilities' );

After adding the code, visit the front-page of your site once. Then, you can safely remove the snippet from your functions.php file. This should restore the full WPML menu.

If this solution does not seem relevant to your issue, 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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 1 year ago.

Assisted by: Bobby.

Author Posts
January 25, 2024 at 4:52 pm #15227542

alfredP-3

I am trying to: Access WPML in the WordPress Admin

Link to a page where the issue can be seen: hidden link

I expected to see: The WPML Menu including "Translation Management", "Languages", "Theme and plugins localization", "Translations", "WP Menus Sync", "String Translation", "Taxonomy translation", "Packages", "Settings", "Support"

Instead, I got: The only menu item that shows up is "Translations"

MicrosoftTeams-imageef9c56343c055ae78f3606615369259609a67fc9868cd56f3b676fe19496e7cb.png
January 25, 2024 at 8:07 pm #15228044

Bobby
Supporter

Languages: English (English )

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

Hi there,

Please verify that your user account is currently set as an admin user.

If yes, proceed to the following steps:

To fix this, I suggest you run the following snippet:

function wpmlsupp_1706_reset_wpml_capabilities() {
    if ( function_exists( 'icl_enable_capabilities' ) ) {
        icl_enable_capabilities();
    }
}
add_action( 'shutdown', 'wpmlsupp_1706_reset_wpml_capabilities' );

Just add the above code in your theme's functions.php file (between the <!--?php and ?--> tags) and visit once the front-page.

Then you can remove this snippet.

Please let me know if this fixes the issue.

Thank you!

January 25, 2024 at 8:16 pm #15228066

alfredP-3

The WordPress user setting was a lower level than "Admin". Switching to "Admin" fixed the problem.

Thank you!