• Resolved iamonstage

    (@iamonstage)


    The plugin is set up to use the capability of ‘manage_options’. However, I would like to allow Editors the ability to add/edit carousel posts. How do I change the plugin so that users with the ‘create_posts’ capability can manage carousels?

    My attempt to the functions.php code is below:

    add_filter('sp_wp_carousel_post_type_args', 'wp_carousel_editor_permission', 10, 2);
    function wp_carousel_editor_permission($args, $post_type)
    {
            $args['show_ui'] = 'create_posts';
        return $args;
    }
Viewing 1 replies (of 1 total)
  • Plugin Author ShapedPlugin LLC

    (@shapedplugin)

    Hi, @iamonstage,

    Sorry for being late to reach you.
    The editor is capable to create and edit carousel posts because manage_options capability gives permission to add/edit the carousel posts.

    Have you checked it? let me know.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Change plugin permission’ is closed to new replies.