Forums

Change user role - add upload to "contributor" (4 posts)

  1. chrisallen8888
    Member
    Posted 2 years ago #

    I'd like to add the capability of uploading pictures to the "contributor" role.

    basically i want them to be able to upload pics etc without being able to Publish, only submit for review.

    is there a php file i need to adjust? thank you

  2. Shane G
    Member
    Posted 2 years ago #

    Hi,

    Check with this plugin to edit the user role in wordpress:

    http://wordpress.org/extend/plugins/role-scoper/

    Thanks,

    Shane G.

  3. chrisallen8888
    Member
    Posted 2 years ago #

    searched forever then posted this, and then i find a thread about this topic.

    seems as if "role-manager" plugin is the only way.

    but it must be affecting a php file somewhere in the install right? anyone know?

    thanks.

  4. dbmartin
    Member
    Posted 2 years ago #

    You could try this:

    <?php
    function add_role_caps() {
        global $wp_roles;
        $role = get_role('contributor');
        $role->add_cap('upload_files');
    };
    add_action ('admin_head','add_role_caps');
    ?>

    Just add that to your "functions.php" file.

Topic Closed

This topic has been closed to new replies.

About this Topic