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
- Convert existing site to network
- How do I transition multiple installations to a single Multisite installation?
- New Multisite Network: redirected you too many times
- Protect Uploads in Multisite
- Global Parent theme for all sites
- the blog owner multisite
- How to properly force https and www on multisite with Apache HTAccess
- Display site administrator’s id by current blog id inside link
- SELinux security vs WordPress updates
- Switch MultiSite main site with another (multilingual sites) – with subfolder – no subdomain
- Updated to version 3.8 and Admin pages are very slow. How to diagnose problem? [closed]
- Multisite install on subdomain w/ subdomains change siteURL
- How to check main blog in a multisite using if statement?
- How can I map the primary domain for subsite as subdirectory for another domain?
- Website not listed under Sites (in a Network environment)
- get_site_option / update_site_option – the main site and sub sites do not share the same storage
- Number of total comment does not tally with the number of comment?
- Subsites in Multisite throw 404 in wp-admin
- WordPress theme to support single website but with 3 sections for 3 languages
- Update siteurl and home in multisite subsites to https
- WordPress multi-domain with multiple sites with multiple languages
- Domain level problem for multisite?
- Redirect www.mainsite.com/subsite/wp-login to www.mainsite.com/wp-login
- Activation of new Registered site fails on multisite
- How does adding custom meta to signup form work?
- Can’t un-archive site after upgrading to WordPress 3.8
- How to handle responsive and non responsive websites in one WordPress Theme?