Your if
case matches any user who is not both a super admin and test_user
.
For example, given a user test_user
who is not superadmin, the result would be
if (true || false) redirect
Since one condition is true, the redirect would be triggered. Using the &&
operator, you’d get
if (true && false) redirect.
Since both are not true, it doesn’t trigger the redirect.
Related Posts:
- Good way to block users within a multisite setup without deleting them?
- Some Subdomains on a Multisite Install Not Found
- Is there a is_user_logged_in() for multisite?
- Troubleshooting a “You do not have sufficient permissions to access this page” error
- Restrict users on multisite WordPress install
- Unable to login to new custom domain on multisite?
- share login/logout sessions across two installs?
- How to Login Once to an Entire WP Multisite Network
- Can you have multi-site WP and keep users separate?
- Multisite – Redirect All Users to Subsite Home Page on Subsite Login
- Restrict the user access in multi site for non-assigned blogs
- WordPress Multisite Login Access
- Multisite Independent User Base
- How can I get multisite primary blog (url or path) for current user?
- Subdomain login problems
- WordPress Multisite local: wp-login.php refreshes on login Chrome Browser
- ‘Remote Login’ with MultiSite Domain Mapping still forcing users to login to all blogs individually?
- How to stay logged in on a multisite with different domains?
- WordPress Multisite prevent direct access to subdomain
- Login on Multiple Sub-Domains without Multisite
- Fresh Multisite Install – Can’t Log In
- Auto Redirect after login
- access the plugins for each role in WordPress multisite
- WordPress MultiSite login to the respective site
- How to protect post attachments related to a custom post type, from non-logged in users, on 1 subsite of a multisite installation?
- Multisite registration problem [closed]
- How to fix blocked cookies error that doesn’t let me log into wp-admin?
- Subsite access without being a member of the subsite in wp multisite network
- Automatically login user across multisite
- How can you override the is_multisite check in wp-login.php for individual login/registration?
- How to write RewriteRule for login in multisite
- Multi-Site Subfolder User Permission Issue
- Add access control origin header information across multisite
- One Site as a part of Multisite to be hidden (Un-published) from Public?
- Multisite Login problem
- Https and Http Login Issue on WordPress Multisite
- Different Domains in Multisite Setup
- Multisite infinite redirect loop
- Hiding media uploaded by other users in wordpress multisite?
- Infamous admin login redirect
- Common user login for two different wordpress installation and bbpress
- How to check main site user level from subsite in a multisite network
- Give users acces to admin a single post or set up WP network?
- Is there something I need to know in order to use WordPress on foreign (Swedish) TLDs?
- Restrict users of site 1 to login in site 2 in wordpress multisite
- Unable to execute Ajax request, status code 400
- How to display custom logo on WordPress login page
- Moving from a non WordPress site to a WordPress Site – Login between both sites
- WordPress Multisite: Login to all subsites at once
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- Multisite – site user limited only for this site
- Unable to sign in to network after moveing address but able to login into child sites
- User not staying logged into one of sub sites in multisite after SSL
- Single sign on to sub-sites in Multisite Network
- WordPress automatic Login on other page?
- how to make a cronjob run, when user needs to be logged in
- WordPress Network with SSL for multiple domains
- Why does this multisite redirection loop vanish when I add “www.”?
- WordPress Multisite FQDN Admin Access
- One login for 3 WordPress installations with combined user table doesn’t work
- Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard
- Admin user getting redirected to /wp-admin/user
- How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
- Is it possible to create a login for restricted visibility?
- How do I combine wp_redirect and add_filter?
- Common login for websites belonging in different networks
- Best Way to Setup a Network of WP Sites?
- WordPress Multisite restict user access
- Error Message when logging into WordPress on Xampp
- Multisite Login Access Restrictions
- WordPress MU: Cookie error when trying to login on network WP instance
- something in database is causing me to not be able to log into network admin of multisite
- Weird Issue – WordPress Multisite – Cannot Access subdomain’s pages
- Why am I getting the login screen in wp-admin->Appearance->Customize?
- Keep users logged in across multisite in wordpress (for various domains)
- How to use WordPress Multisite With Different Domain Names?
- How To Add Custom Form Fields To The User Profile Page?
- How do I create a custom role capability?
- Where are available Roles Defined in the wp_ database?
- restore_current_blog() vs switch_to_blog()
- Can i merge 2 new WP_Query($variable) ‘s?
- How to disable a network enabled plugin for just one site?
- How to reliably flush rewrite rules on multisite?
- Site Redirecting to wp-signup.php
- Moving a WP Multisite to a subdirectory
- Cookies in multisite where network sites have their own domain name
- Convert a Multisite WordPress install into a Single site
- WordPress MultiSite Active Directory integration and site privacy
- WordPress Job Interview Preparation
- How to add Custom Blog Options to new blog setup form?
- How can I trust switch_to_blog()?
- Remove the blog slug from WordPress Multisite root node
- Why are my roles not visible in a Multi-site/Network?
- Site admin in a network install can’t edit users?
- How to use same email for multiple users
- How to run an activation function when plugin is network activated on multisite?
- Specific upload folder for PDFs in custom Post type in WP multisite
- What is the correct way to map multiple domains in a WordPress 4.1 multisite install?
- Where can I find documentation on what characters are allowed in user names and why?
- How to migrate subsite from dev multisite to production multisite