WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Wp Cap upload_files dependents on WordPress uses edit_plugins capability

[Resolved] Wp Cap upload_files dependents on WordPress uses edit_plugins capability

  • I found some issues with the upload_files capability.

    A Basic Example
    The artist role can upload media. So I wrote the following code.

    add_role('artist', 'Artist', array(
        'upload_files ' => true,
        'delete_posts' => true,
        'delete_published_posts' => true,
        'edit_posts' => true,
        'edit_published_posts' => true,
        'publish_posts' => true,
        'read' => true,
    ));

    Everything works great, however when you go to edit media you cant.

Viewing 1 replies (of 1 total)
  • So you have to set some more options. If you want to see other users media you need to add the following caps.

    edit_others_pages
    edit_others_posts
    edit_pages
    edit_plugins
    edit_posts
    edit_private_pages

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Wp Cap upload_files dependents on WordPress uses edit_plugins capability’ is closed to new replies.