• Resolved Rachel Forwood

    (@rachelforwood)


    Hi

    Firstly, great plugin – thanks.

    Is it possible to grant users with the role of Editor access to the plugin? Currently only Administrators can access it

    thanks

    Rachel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @rachelforwood,

    Thanks a lot for using the plugin. We’re really happy to hear that you enjoyed it.

    By default, the plugin is accessible only by the ‘Admin‘. However, you have the option to allow the user role ‘Editor‘ to access the plugin by utilizing the code provided below.

    Add the code to the bottom of the functions.php file of your current theme.

    function show_to_editor($args) {
        unset($args['show_ui']);
        $editor_compatible = array('show_ui' => current_user_can('edit_others_pages') ? true : false);
        return array_merge($args, $editor_compatible);
    }
    add_filter('sp_wp_carousel_post_type_args', 'show_to_editor');

    Apply the code and let us know if it works. Look forward to hearing from you soon.

    Have a nice day!

    Thread Starter Rachel Forwood

    (@rachelforwood)

    Thanks Pulak – worked perfectly. Appreciate your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allowing Editors to use the plugin’ is closed to new replies.