Support » Plugin: WP Document Revisions » Issue: WP Document Revisions on a Network

  • Resolved jacob.tingen



    Love this plugin, it’s fantastic!

    My current issue is that when I activate WP Document Revisions on a WordPress MU network, the Documents menu tab does not appear in the admin menu on the left for all users.

    When I visit any subsite as a super admin, the Documents tab does appear, but regular administrators don’t have access to Documents functionality on their own subsites. If I make a user a super admin, they can then see the Documents admin menu, so something odd is happening with the user roles in that only super admins have access to it when I activate it network wide.

    I tried to read about it and fix it myself first, but I couldn’t find anything except for some comments about that it should work network wide.

    Two more notes that might help: 1) if I deactivate it network wide and then activate it on just the subsite, then the admin for that subsite can of course access document functionality.

    2) I have tried this on two different WPMU installs – one with all other plugins deactivated – same result.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ben Balter


    Sounds like a permissions issue. Have custom roles? Use the members plugin to define who has what capabilities, and menu, etc. should respond accordingly.


    I installed the members plugin and tried to edit the capabilities each user role level can access.

    When logged in as a super admin and editing user role capabilities on my main site, I saw that the document capabilities were already checked among the 99 available for my Administrator user level.

    When I visited a subsite and attempted to edit the user roles, there were only 79 available capabilities for the Administrator user level. None of the document capabilities were listed so I was unable to make it available. Any idea of what could cause that?

    When you say permissions, you aren’t talking about file permissions are you? Just user role permission/capabilities. Thanks for your help.

    Also, I don’t have any custom user roles, just default WordPress roles. Thanks again.

    Hi, I resolved my issue by creating a plugin to add wp document revision capabilities to the administrator role network wide. Here’s the code I used, it might work for someone out there.

    You can put it in your theme’s functions.php file or you can make a plugin out of it like I did. I can’t claim authorship of the code, I found it somewhere recently where it was applied to gravity forms capabilities but didn’t bookmark the page…

    // get role by name (change 'administrator' to a role)
    $role = get_role( 'administrator' );
    // or get user by user ID (change $id to an id)
    // $role = new WP_User( $id );
    // or get user by username (change $name to a username)
    // $role = new WP_User( null, '$name' );
    // add core wp document revisions capabilities
    $role->add_cap( 'delete_documents' );
    $role->add_cap( 'delete_others_documents' );
    $role->add_cap( 'delete_private_documents' );
    $role->add_cap( 'delete_published_documents' );
    $role->add_cap( 'edit_documents' );
    $role->add_cap( 'edit_others_documents' );
    $role->add_cap( 'edit_private_documents' );
    $role->add_cap( 'edit_published_documents' );
    $role->add_cap( 'override_document_lock' );
    $role->add_cap( 'publish_documents' );
    $role->add_cap( 'read_documents' );
    $role->add_cap( 'read_private_documents' );
    $role->add_cap( 'read_document_revisions' );


    This is indeed a requirement for multi-site functionality. This works like charm. Another option is to install Members plugin and then add Custom Capabilities in Roles. Capabilities are listed as follows:


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue: WP Document Revisions on a Network’ is closed to new replies.