Redirect all pages to the custom login page except for the registration page
I think you can use a plugin to do this, I suggest you to use the “User Registration” plugin
I think you can use a plugin to do this, I suggest you to use the “User Registration” plugin
Only super users can edit profiles in WordPress Multisite. This is because user profiles are site-independent in multisite. A user has one profile, but may be a member of multiple sites with multiple owners. You can’t let one of them screw around with the user’s profile… If you really want to take control of this, … Read more
You could give Private Only a shot – but it’s best for you to do your own research on the Plugin Repository to find the plugin that suites your needs best.
Try this: Paste it on functions.php (not tested) add_action(‘template_redirect’, ‘my_user_redirect’); function my_user_redirect(){ if(!is_user_logged_in()){ // only redirect use not logged in wp_redirect( home_url( ‘welcome’ ), 301 ); exit; } } Let me know if it worked.
You could proceed like that : add_filter(“login_redirect”, “wpse_113875_login_redirect”, 10, 3); function wpse_113875_login_redirect($redirect_to, $request, $user) { if(is_array($user->roles)) if(in_array(‘administrator’, $user->roles)) return site_url(‘/wp-admin/’); return home_url(); } This will use the WP login system and redirect users according to their role after login. I think this is easier than building your own script in this case. You could easily … Read more
How to track all users logged into a site?
Editing the core files is not recommended. You may try downloading a clean install of WordPress files. If you can, set the current theme to TwentySeventeen so your database is ready to work with a clean install. Make sure to back up your database if you have not already. Follow the codex instructions to delete … Read more
I would suggest the Force Login plugin. It should allow you to require login for your entire site, but you can filter exceptions for certain pages (like the homepage).
Are you using any caching plugin on the website? If yes then try disabling it and see if the issue occurs again. If you use Cloudflare, try disabling that as well temporarily. If the issue is because of the cache, then try disabling/tweaking some of its option to see what exactly is causing this issue.
determine active user browser at the same time