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
- Turn off ms-files.php after network setup
- How do I fix problems with users not being able to publish and only submit for review after upgrade of Multisites installation?
- subdomain archiving
- Copy site from one multisite to another
- add_rewrite_rule not registering on Multisite
- how do I configure nginx for wordpress multisite, it occurs ERR_TOO_MANY_REDIRECTS
- Getting blank thumbnails in media library?
- Multiple homes for multiple languages [closed]
- You do not have permission to edit this user
- Can’t access WordPress as an admin – but I can log in as a user!
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- How to make a php script(app) accessible to all wordpress subdomains in a wordpress multisite configuration?
- Multisite with 220+ sites painfully slow
- WordPress Mulitisite – Unable to create directory
- network site domain mapping still applied after being removed
- Can WordPress Multisite (MU) subdirectory url/slug/permalink be changed?
- Multisite Subdomain Redirect Mask
- How can I use different domains on a WP multisite install?
- Multisite subdomain-site redirects to primary site
- Export / import
- Multisite with Different URLs on Local Server
- SSL for Mapped Domains with WordPress Multisite on AWS
- Applying Child Theme to another site, which has its own URL
- After cloning my WordPress database to another server, I cannot log in
- WordPress multisite dashboard not working..!
- In a MS install, can you allow different users to have their own themes?
- Redirect authors from upload.php url to Home page in Multisite
- Images on WP Network’s subsite appear only if accessed via main site’s url
- Multisite: should /blog go to a 404 page?