How to Manage Permissions in the WPML Plugin

Wpml Translations

WPML is the acronym for “WordPress Multilingual Plugin”.

WPML is a WordPress plugin that enables you to turn any WordPress website into a multilingual website.

The PublishPress Capabilities plugin has support for WPML. This means that you can create user roles that are allowed to access specific areas of the WPML plugin.

If you install PublishPress Capabilities, click “Capabilities” in the admin menu. Click “WPML” in the sidebar and you will now be able to see all the permissions available for WPML.

Wpml Capabilities
Wpml Capabilities

What do all these options mean? The best way to understand these options is by looking at the WPML admin menu. The image below shows the main WPML menu in the WordPress admin area with several key features enabled.

Menus Wpml
Menus Wpml

Now take a look at this table below, which is taken from the WPML website. The capability names are in the left column, and the names of related screens are on the right column.

Capability nameWhat the capability controls
wpml_manage_translation_managementThis gives full access to the Translation Dashboard, Manager, Jobs, and more.
wpml_manage_languagesGives access to the “Languages” settings.
wpml_manage_translation_optionsWhen the “Translation Management” feature is not active, gives gives access to the translation options.
wpml_manage_troubleshootingGives access to the “Troubleshooting” screens.
wpml_manage_taxonomy_translationGives access to the “Taxonomy translation” page.
wpml_manage_wp_menus_syncGives access to the “WP Menus Sync” page.
wpml_manage_translation_analyticsGives access to the “Translation Analytics” page.
wpml_manage_string_translationGives access to the “String Translation” page.
wpml_manage_sticky_linksGives access to the “Sticky Links” page.
wpml_manage_navigationGives access to the “Navigation” page.
wpml_manage_theme_and_plugin_localizationGives access to the “Theme and plugins localization” page.
wpml_manage_media_translationGives access to the “Media Translation” page.
wpml_manage_supportGives access to the “Support” screen.
wpml_manage_woocommerce_multilingualGives access to the all the WooCommerce Multilingual features.
wpml_operate_woocommerce_multilingualGives access to the all the WooCommerce Multilingual features, except for the settings.

An example of how to give WPML capabilities

In this part of the guide, I'll give you an example of how to extend a user role and give access to extra areas of WPML.

This screenshot below shows what a user in the “Authors” role can see when they login to a WordPress site. There is no access to WPML.

Author Role Wpml
Author Role Wpml
  • Click “Capabilities” in the WordPress admin menu.
  • Choose “Author” in the dropdown menu.
  • Click “WPML” in the sidebar.
  • Check the boxes for “wpml_manage_translation_management” and also “wpml manage languages”.
  • Click “Save Changes”.
Author Capabilites Wpml
Author Capabilites Wpml

Now when a user in Author role logs in to the site, they will now have access to some key WPML screens.

Author Role Wpml Extended
Author Role Wpml Extended

It's worth noting that this approach mainly controls access to screens inside WPML. If you want to assign users to translate specific content or languages, that should be done inside WPML. For example, to allow a user to translate content in language, you should use the “Translators” tab to grant access.

Add Translator
Add Translator

Author


Leave a Reply

Your email address will not be published. Required fields are marked *

Professional publishing plugins for WordPress! Get PublishPress