WordPress Require Login / Walled Garden
Place this in your functions.php file: function walled_garden() { if( ! is_user_logged_in() ) wp_redirect( ‘/wp-login.php’ ); } add_action( ‘get_header’, ‘walled_garden’ );
Place this in your functions.php file: function walled_garden() { if( ! is_user_logged_in() ) wp_redirect( ‘/wp-login.php’ ); } add_action( ‘get_header’, ‘walled_garden’ );