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.

This topic contains 7 replies, has 3 voices.

Last updated by Riffaz 5 months, 3 weeks ago.

Assigned support staff: Riffaz.

Author Posts
October 20, 2019 at 1:14 am #4788501

nikolajW

Hello,

I'm using the plugin Adminimize to hide backend menu options for my client.
Even though I checked the box in the Adminimize setting to hide the menu items, still 2 items in clients backend are available.

See video for demo:
hidden link

Regards

October 20, 2019 at 6:32 am #4789221

Riffaz
Supporter

    Languages: English (English )

    Timezone: Asia/Colombo (GMT+05:30)

    Hi,

    Thank you for contacting WPML support.

    I could not find your plugin in our compatibility list: https://wpml.org/documentation/plugins-compatibility/
    So, this could be a compatibility issue.
    Ask your plugin to contact us via : https://wpml.org/documentation/theme-compatibility/go-global-program/

    Anyhow, main WPML menu is backend is visible for all user but the submenus are visible only for admins.
    And, this is a plugin related issue. This is not about translating. it's about hiding admin menus using a third party plugin.
    So please discuss this with the plugin support as well.

    Anyhow, adding this code to the bottom of your functions.php will make WPML disappears to non-admin users

    function remove_wpml_from_admin_non_adminUser() {
    	if(!current_user_can('administrator')) {
        	remove_menu_page( 'WPML' );
    		remove_menu_page( 'wpml_manage_languages' );
    		remove_menu_page( 'sitepress-multilingual-cms/menu/languages.php' );
    	}
    }
    

    Change the role as you want.

    Hopefully, this will fix your issue.

    Regards,
    Riffaz.

    October 20, 2019 at 8:01 am #4789271

    nikolajW

    My issue is resolved now.
    I removed the client from the WPML > Translation Management > Translation Roles.

    Thank you!

    October 22, 2019 at 6:09 am #4798893

    nikolajW

    Hey, since the new Update the menu item appeared.
    The code snipped doesn't work.

    Regards

    October 22, 2019 at 6:12 am #4798929

    nikolajW

    Ok, I'm controlling the appearance of the menu item with the plugin User Role Editor.
    After the updated a new option appeared which was not unchecked.

    Problem solved. 🙂

    March 30, 2020 at 12:54 am #5790281

    karzanK

    Hello,

    I'm using WPML plugin for client website, I have hided all menus from WP dashboard for Client editor Role, using White Label CMS,
    Attached confirmation of Hided all menus from WL CMS plugin. but
    (Translations, and String Translation) still visible!

    Any idea how to hide both of those with code?
    or I can control visibility with WPML in somewhere from settings?

    Thank you for your help

    March 30, 2020 at 1:52 am #5790331

    karzanK

    BTW , I have gave (Translator) Role to the client user (Editor) role, from:

    WPML -> Translation Management -> Translation Role -> Translator.

    Translations Link:
    hidden link

    String Translation:
    hidden link

    Just FYI, All pages and posts are translatable and working with out any issue or showing this error:
    Cannot load wpml-translation-management/menu/translations-queue.php.

    Thank you.

    March 30, 2020 at 12:22 pm #5794427

    Riffaz
    Supporter

      Languages: English (English )

      Timezone: Asia/Colombo (GMT+05:30)

      @karzank it's closed thread. so we will not get alerted in the dashboard when you reply here. I accidentally saw this. so please open a new ticket for your issue.

      Regards,