WordPress.org

Ready to get started?Download WordPress

Forums

User Role Editor
[resolved] Add Capabiltiy for Camera plugin (3 posts)

  1. dbrandt
    Member
    Posted 1 year ago #

    I like to add a capability for the plugin Camera

    http://wordpress.org/plugins/camera-slideshow/

    I added a new role , but cant find out how to get it to edit the camera plugin. I can only see the camera plugin if im logged in as admin.

    http://wordpress.org/extend/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    This is a list of built-in WordPress capabilities on the base of which 'Camera' controls access to its menu, 'manage_network' - Super Admin+, 'activate_plugins' - Administrator+, 'moderate_comments' - Editor+, 'edit_published_posts' - Author+, 'edit_posts' - Contributor+, 'read' - Subscriber:

    <select name="camera_perm_panel">
                            <option value="manage_network" <?php selected( camera_get_option('camera_perm_panel'), 'manage_network' ); ?>>Super admin</option>
                            <option value="activate_plugins" <?php selected( camera_get_option('camera_perm_panel'), 'activate_plugins' ); ?>>Admin +</option>
                            <option value="moderate_comments" <?php selected( camera_get_option('camera_perm_panel'), 'moderate_comments' ); ?>>Editor +</option>
                            <option value="edit_published_posts" <?php selected( camera_get_option('camera_perm_panel'), 'edit_published_posts' ); ?>>Author +</option>
                            <option value="edit_posts" <?php selected( camera_get_option('camera_perm_panel'), 'edit_posts' ); ?>>Contributor +</option>
                            <option value="read" <?php selected( camera_get_option('camera_perm_panel'), 'read' ); ?>>Subscriber +</option>
                        </select>

    So to give your custom role access to this plugin include into role one of those capabilities and select correspondent standard WP role at the Camera plugin settings tab. For example, if you select 'moderate comments' for your custom role, then at plugin settings you should select 'Editor'.

  3. dbrandt
    Member
    Posted 1 year ago #

    Thanx! that works!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic