Background of the issue:
We programmatically created two custom user roles on our site: Editor no taxonomy and Translator. The Editor no taxonomy role has the same permissions as an editor but cannot make any changes to taxonomies. The Translator role has the same permissions as a contributor but cannot publish content. Here is an example of what we added for the Editor no taxonomy role:
// Add capabilities to edit posts and pages, including translations
$role->add_cap('edit_pages');
$role->add_cap('edit_others_pages');
$role->add_cap('edit_published_pages');
$role->add_cap('edit_posts');
$role->add_cap('edit_others_posts');
$role->add_cap('edit_published_posts');
// WPML specific capabilities for translation editing and viewing other languages
$wpml_caps = [
'wpml_manage_translation_management',
'wpml_manage_languages',
'wpml_manage_string_translation',
'wpml_manage_taxonomy_translation',
'wpml_manage_media_translation',
'wpml_edit_translation',
'wpml_manage_translation_analytics',
'wpml_manage_wp_menus_sync',
'wpml_manage_navigation',
'wpml_manage_troubleshooting',
'wpml_manage_translation_options',
'wpml_operate_woocommerce_multilingual',
'wpml_manage_theme_and_plugin_localization',
'wpml_view_language_switcher', // Ability to view language switcher
];
foreach ($wpml_caps as $cap) {
$role->add_cap($cap);
}
Symptoms:
When accessing WPML signed in as one of these users, the Translation Management interface is empty.
Questions:
Why is the Translation Management interface empty for custom user roles?
Are there additional capabilities required for custom roles to access the Translation Management interface in WPML?
Gérer le consentement aux cookies
Nous utilisons des cookies pour optimiser notre site web et nos services. Votre consentement nous permet de traiter des données telles que le comportement de navigation. L'absence de consentement peut affecter certaines fonctionnalités.
Fonctionnel
Toujours activé
Nécessaire au bon fonctionnement et à la communication de notre site web.
Préférences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistiques
Nous les utilisons pour analyser les statistiques de notre site. Les informations collectées sont totalement anonymes. Le stockage ou l'accès technique qui est utilisé exclusivement à des fins statistiques anonymes. Sans citation à comparaître, la conformité volontaire de la part de votre fournisseur d'accès Internet ou d'autres dossiers d'un tiers, les informations stockées ou récupérées à cette fin ne peuvent généralement pas être utilisées pour vous identifier.
Marketing
Ces cookies suivent votre navigation pour vous proposer des publicités pertinentes pour vous.