Access to the plug-in for the editor
-
Can I enable plugin visibility for ‘editor’ role in WordPress? Currently, the Editor cannot change / add / edit anything in the added content as a table in WP Tabs. And that’s an unnecessary complication. It looks nice and that’s where the legitimacy of such solutions ends.
-
Hi @youmound ,
Thanks for reaching us.
With the use of custom code, you can quickly grant the Editor role users access to the plugin. Please review the documentation regarding granting the plugin access to the Editors.
Documentation link: https://docs.shapedplugin.com/docs/wordpress-carousel-pro/hooks-actions-and-filters/#filter8
Simply add the following code to the bottom of the functions.php file of your current theme.
// Give access to the Editors function sp_wp_carousel_to_editor($capability){ $capability = 'edit_others_pages'; return $capability; } add_filter( 'sp_wp_carousel_ui_permission', 'sp_wp_carousel_to_editor' );
Hope this may help you. Let us know if that works.
Have a great day!
Best regards,
i added this code, however when logged in as “editor” I can’t see the WP TABS tools
Hi @youmound,
Sorry for the inconvenience. Unintentionally, we copied the incorrect hook and shared the code of another plugin.
You can replace the previous code with the following. Hopefully, this time it will work perfectly.
//WP Tabs Plugin access to editors add_filter( 'sp_wp_tabs_ui_permission', 'sp_wp_tab_ui_permissioneditor' ); function sp_wp_tab_ui_permissioneditor() { return 'edit_others_posts'; }
Let us know if that works. Have a great day!
Best regards,
It’s ok! works thanks 🙂
Hi @youmound,
Thanks for the confirmation.
We are marking this thread as resolved. If you have any more questions, you can open a new thread.
Have a great day!
- The topic ‘Access to the plug-in for the editor’ is closed to new replies.