How-to block registered users from access to WP backend on multi-site network?

One site on my network is able to block users from accessing dashboards on other sites in the network, but the other 2 sites allow users to type:

And have access (limited access), but access nonetheless to a dashboard.

I’m using:

I had the plugin set new users’ role to contributor but have now changed all new roles to subscriber. Folks can still access wp back-end dashboard on the 2 sites mentioned.

Where can I block access to these sites in settings or elsewhere?

thanks in advance,

Elmer (Brand-new WPMU Dev member)

  • elmer_harris
    • Flash Drive


    I found a solution here.

    Essentially what you do is paste the following in your “functions.php” file on each site of your network.

    add_action( 'init', 'blockusers_init' );
    function blockusers_init() {
    if ( is_admin() && ! current_user_can( 'administrator' ) ) {
    wp_redirect( home_url() );

    Hope this helps someone with the same issue.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.