Support » Plugin: User Role Editor » Manage_Sites capability not enabling site creation

  • Resolved hershey108

    (@hershey108)


    I’m testing the functionality of User Role Plugin on WP Multisite, and have assigned the manage_sites and manage_network capability to site administrators across the network. I want Admins to be able to create more sites.

    I can navigate to the Sites tab by pasting in the address, but it doesn’t offer me the Add Site button. When I paste in the url (/wp-admin/network/site-new.php) it says I have insufficient privileges. Do I need to enable any other capabilities for admins to get to it?

    https://wordpress.org/plugins/user-role-editor/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    It seems we discovered an undocumented WP user capability ‘create_sites’ with your help, WP 4.0 wp-admin/network/sites.php, line #253:

    <?php if ( current_user_can( 'create_sites') ) : ?>
    	<a href="<?php echo network_admin_url('site-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
    <?php endif; ?>

    As this capability does not exist by default, superadmin only may create sites.
    Try to add ‘create_sites’ capability to your role. I think it will do the trick.

    Thread Starter hershey108

    (@hershey108)

    Great, that seems to have fixed it, thanks!

    Will you be adding this as a default capability?

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Yes, I added it to the list of built-in WP capabilities. It will be available with next release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Manage_Sites capability not enabling site creation’ is closed to new replies.