WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Wp Cap upload_files dependents on WordPress uses edit_plugins capability (2 posts)

  1. Trevor Greenleaf
    Member
    Posted 1 year ago #

    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.

  2. Trevor Greenleaf
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic