Support » Plugin: User Role Editor » Add Capabiltiy for Camera plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulia

    (@shinephp)

    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’.

    Thanx! that works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Capabiltiy for Camera plugin’ is closed to new replies.