Overview of the Issue
If you remove the wpml_manage_media_translation capability with Publishpress Capabilities plugin, you will notice that users are still able to access the WPML Media Translation section.
Workaround
This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.
Update WPML to the latest version. Users who are not allowed to manage translations no longer reach the Media Translation screen.
If you cannot update yet:
Please, make sure of having a full site backup of your site before proceeding.- Open your theme’s function.php file.
- Add the following code:
// WPML Workaround for compsupp-7344 function wpml_compsupp7344_disable_wpml_media_translation_menu() { // Check if the current user lacks the required capability if (! current_user_can('wpml_manage_media_translation')) { // Remove the WPML Media Translation menu remove_submenu_page( 'tm/menu/main.php', 'wpml-media' ); } } add_action('admin_init', 'wpml_compsupp7344_disable_wpml_media_translation_menu');
Still Seeing This Issue?
If updating doesn’t fix it, ask a support question and we’ll look into it with you.
Ask a support question