• Hello, all!

    I’d like to use the contributor role for my authors, but with added permissions. I would like them to be able to upload their own files. I’ve used this code to accomplish that:

    $role = get_role( 'contributor' );
    $role->add_cap( 'upload_files' );

    They can upload files, but cannot see the entire media library (which I want them to be able to do). Furthermore, when they upload their files and refresh the library, their files don’t show up for them.

    What do I need to add to my code so the contributors can view all media files and be able to upload and edit their own?

  • The topic ‘Contributor cannot view all files in media library’ is closed to new replies.