Lock one of WP Network sites for not registered users

I don’t have the domain mapping on a test installation at hand currently, but what should work is:

add_action( 'template_redirect', 'auth_redirect' );

As a plugin here: T5 Force Log In.
auth_redirect() is WordPress’ native handler for authentication, if it doesn’t work, something is broken in core code.

Leave a Comment