Cet utilisateur n'a aucun sujet favori.
Sujets de forum favoris
Sujets de forum créés
| Statut |
Sujet
|
Support | Voix | Messages | Fraîcheur |
|---|---|---|---|---|---|
|
WPML Media Plugin not responding to permissions settings
Commencé par : ieshI
dans : English Support
Problem: functions.php file: // WPML Workaround for compsupp-7344<br />function wpml_compsupp7344_disable_wpml_media_translation_menu() {<br /> // Check if the current user lacks the required capability<br /> if (! current_user_can('wpml_manage_media_translation')) {<br /> // Remove the WPML Media Translation menu<br />remove_submenu_page( 'tm/menu/main.php', 'wpml-media' );<br /> }<br />}<br /><br />add_action('admin_init', 'wpml_compsupp7344_disable_wpml_media_translation_menu');After adding this code, verify if the WPML Media menu is no longer visible to the restricted users. Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum. |
|
3 | 8 | Il y a 1 année et 10 mois |