Hope this helps someone else. After hours of debugging, I found out that under multisite setup, wp_signon ($creds, false) will not log you in. So you should either do:
$user = wp_signon ($creds, false);
wp_set_auth_cookie($user->ID);
or
$user = wp_signon ($creds, true);
Related Posts:
- How to use WordPress Multisite With Different Domain Names?
- Can i merge 2 new WP_Query($variable) ‘s?
- multisite: use a virtual subfolder for subblogs
- WP Multisite – multilanguage – swich to other language by click, but “same” content
- How To Provide Sub-Blogs Their Own Domain Names?
- “You need a higher level of permission” after admin changing. Why?
- Advanced Custom Fields Multisite Upload/Imagery Issue [closed]
- Prevent user creating new users with specific roles
- What is the correct form action URL for network options pages?
- Lock one of WP Network sites for not registered users
- How can I manage all multisite pending comments in one place?
- WordPress Multisite Network installation and dev questions
- BuddyPress on Multisite [closed]
- List all sites in multisite
- Migrating WPMS from apache to IIS7 causes Database Error
- Turn off trackback/pingbacks and comments on all existing multisite sites
- Subfolder multisite issue. Themes and plugin files 404
- Creating Admin Options Page where users can make changes to a theme
- htmll lang=”de” but admin page in English
- Multisite list all pages in site
- Dissolve Multisite while making site #5 the main site?
- Disable domain redirect
- Multisite setup on IIS with subdomains
- Partially translated dashboard in one of network’s site
- How can I fix a Virtual Multiblog install that has no errors, but won’t show all my sites?
- Disabling outbound connectivity on web servers [closed]
- Depth > 2 possible with multisite?
- Cannot access WordPress Multisite Main Dashboard
- “Organize my uploads into month- and year-based folder” Option Not Visible in Multisite
- Multisite install – Create each domain with its own directory
- Multisite theme control not working
- Copy Root Multisite Site
- WP Multisite with Domain Mapping : Preventing User Access to Dashboard
- Possible to enqueue scripts and CSS to Multisite Network dashboard?
- Where does multisite store image uploads?
- Howto disable comment moderation emails for admins, but not for authors
- WordPress Multisite – can I somehow merge the tables?
- Clone single site into a multisite setup
- What happens if I use .htaccess of network multisite on a single site installation?
- Migrating MultiSite to SSL: Media Library not updating
- Nginx config, how can I redirect primary multisite domain, but not its sub-folders, nor other domains?
- Multisite Create Site not working
- Renaming admin user on multisite install by MySQL
- Assign default widgets to all sites in a multisite network
- How to split existing blog into WordPress Multisites without breaking links?
- How to write RewriteRule for login in multisite
- NextGEN Gallery: Use the same galleries on 2 or more sites on WP network (multisite)? [closed]
- get_option( ‘home’ ) not returning value in database
- How can I create blog specific database table in multisite?
- Save uploads directly in the uploads folder (on a multisite)
- Missing images after moving servers
- Create “/blog” sub-site on WP multisite network
- How to query blogs posts of WordPress sub domain?
- how to list all subdomain in wordpress multiuser
- Can you please verify my robots.txt for wordpress
- Share contents/posts between sites in a WordPress 5.6
- Wait ajax to complete before continue loop
- sub-page settings saving in NETWORK DASHBOARD
- Multi-vendor with custom shop site for each vendor
- You need to login with a user that has edit posts capacity?
- Change WordPress Multisite Domain
- WPMU add custom colum
- Change WP-LOGIN and WP-SIGNUP for any request
- Remove W3 Total Cache minified files on custom page outside of WordPress [closed]
- Pros and Cons of Post Types vs. Multiple Blogs
- How to automate setup of theme, pages, widgets, etc for a new site in multi-site?
- “My Sites” incorrectly showing all network sites for all logged in users
- Merge posts of more than one site by using one database with the WordPress network
- A database for each category?
- Redirect a WordPress Multisite url after it has been change to a new one
- Structure of multilingual and multiregional directory listing website for translation
- multisite 404 subfolder same name slug as site
- Website creation for multiple clients but from a single account on multiple host name
- Is mature Multisite
- How to make the redirects right? IP to domain name folders
- What is the optimal solution: WP Multisite vs InfiniteWP
- Best way to have multiple custom domains associated with a site within a multisite installation
- Subdomain multisite instances having same content
- Can I add a rewrite rule in htaccess to remove the multisite subdirectory from the URL?
- allow multisite in the installation process
- How to Add Super Admin for WordPress multi-site
- WordPress single sign on using cookies with shared user role functionality between more than 2 wordpress subdomains
- Can’t access 2nd site (sub) dashboard of WordPress Multisite
- How do I point two urls to the same child site in a multisite config
- How to split database of WordPress multi-site network into multiple database
- what if one user in WPMU change the theme files?
- Multisite /files/ URLs broken after server move
- WordPressMU: URL change and broken permalinks/links
- Extended URLs created using multisite feature not loading CSS/JS
- WordPress and SQL – Update and Insert from another table if column value doesn’t exist
- Network – My sites are unavailable
- White pages on sub domains after server transfer
- No input file specified after enabling multi site
- How do I enable Multisite on WP 3.7.1?
- Using common slider in all sites
- Letting clients use visual builders plugins/themes on WordPress Multisite installation
- Registration Page
- WordPress Multisite (Network) some site users added to main site users list as subscriber
- Moving a WordPress Multisite site to a new install
- WPMU and Chrimes Family Link app