Docs    Instagram    FAQ

Comment puis-je permettre aux éditeurs d'accéder aux paramètres du plugin Instagram ?

Vous pouvez accorder à d'autres rôles d'utilisateurs l'accès aux paramètres du flux en utilisant un plugin tel que User Role Editor et en donnant à un rôle la capacité manage_instagram_feed_options , ou en ajoutant l'extrait suivant à votre fichier functions.php :

/* Upgrade the Editor Role */
function sb_custom_capability( $cap ) { 
return 'edit_posts'; }
add_filter( 'manage_instagram_feed_options', 'sb_custom_capability', 10, 1 );

Si vous avez besoin de partager l'accès aux paramètres du plugin, ajoutez l'extrait suivant à votre fichier functions.php :

/* Upgrade the Editor Role */
function sb_custom_capability( $cap ) {
         return 'edit_posts'; }
add_filter( 'sbi_settings_pages_capability', 'sb_custom_capability', 10, 1 ); 
soutien

Vous n'avez pas trouvé votre réponse dans la documentation ?

Contacter le support

Cet article a-t-il été utile ?