Wordpress Multisite restict user access

by Nathan Meyer   Last Updated January 13, 2018 14:08 PM

I have a Wordpress Network with 3 sites. I want to know how can I restrict the user access in the subdomains. Actually, members of the principal site can login on the subdomains.

Do you know if a tiny plugin or a function can restrict users of just one single site ?

I have tried this, but still not work, or I don't know how to use it...

add_action( 'template_redirect', function() {

if ( ! is_user_member_of_blog() )   
    die( 'Please ask the network administrator to get access to this blog.' );
});

In wp-admin/network/site-users.php.

Can you help me ?

Thanks guys



Answers 1


I hope this plugin is best for you. see https://wordpress.org/plugins/advanced-access-manager

You can also see the video tutorial for this plugin from this link. https://www.youtube.com/results?search_query=Advanced+Access+Manager

I hope it will help you.

Bharat
Bharat
November 05, 2015 10:13 AM

Related Questions


Multisite - site user limited only for this site

Updated March 24, 2018 13:08 PM

Wordpress automatic Login on other page?

Updated August 10, 2017 15:08 PM

wordpress subscriber pre-fill password field with a value

Updated September 01, 2017 19:08 PM