You need to set the auth cookie after wp_signon. Add this code and try and let me know the result.
$user = wp_signon( $creds, false );
$userID = $user->ID;
wp_set_current_user( $userID, $creds['user_login'] );
wp_set_auth_cookie( $userID, true, false );
do_action( 'wp_login',$creds['user_login'] );
Related Posts:
- What are PHP extensions and libraries WP needs and/or uses?
- Is it safe to use $_SERVER[‘REQUEST_URI’]?
- Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- Can I view my own wordpress php source code on my hosted web server?
- How to clear WordPress Cache from Server/FTP/Remote location
- How do I test PHP files in WordPress?
- PHP Code stuck in Cache [Memcached] [closed]
- WordPress Site front End and Back End Loading Slowly
- Evaluations of two wordpress security plans against php code injection attack
- WordPress Site Running Extremely Slow on Dedicated Server
- How to enable Zend Optimiser+ with Batcache
- Can you run WordPress on a MarketLive/Java EE server?
- Incorrect MIME type for assets with Valet
- wp-comments-post.php file returns a blank page
- Configure Php server with ISAP
- WP & Server Speed [Teacher Question]
- 3 different times on my WordPress website
- WordPress hit memory limit but not from the server
- After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source
- How can I find the cause of a 500 server error?
- HTTP ERROR 500 after installing child-theme [WordPress] [closed]
- WordPress mod_rewrite not working on php fpm
- Problems clearing cache
- How to prevent a function from running based on host (ie web vs local)?
- Reject all malicious URL requests functions.php
- How can I update WordPress plugins or WordPress itself in all server?
- current_time function incorrect in plugin and PHP, not in WordPress admin
- (solved) WordPress Site not loading properly
- Upgrade to PHP7.3 and Changing Apache from Prefork to Event Breaks WordPress
- Unexpected behavior when trying to manually install WordPress on macOS Sierra
- Creating Log-In Page for backend server
- Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge
- Ajax call URL 404’ing when pushed to staging server
- Published custom posts missing
- WordPress Memory limit not increasing
- changed front-page template gives 500 error
- PHP 7.3 is required for WordPress 5.2 or Recommendation
- what to do after instlling cyberpanel on VPS
- How can I send an email using PHP?
- Modify previous and next text from pagination links
- Shortcode putting html such as
- Load post content into iframe
- Editor role cannot save custom theme options
- Does WordPress cache get_user_meta() results?
- wp_customize_image_control default value
- POSTS list in WordPress by views
- Print number of post (in reverse)
- After upgrading to PHP 7.0 my contact form outputs error
- Use WordPress’s Media Uploader/ Manager in non WordPress php application
- Get/Set wp.customize.previewer.previewUrl
- Can A Shortcode Get HTML/Text From Content And Return It Twice With Added HTML?
- How to check If Oembed is empty or not
- Custom field value not saving when it contains a URL?
- Do changes to WordPress permalink custom structure affect old urls?
- How do I let users upload files to a chosen location?
- Wp-login appears White Screen, Error: Cannot modify header information
- Set WP_query ‘order’ option by another tables value
- Creating user status mode in WordPress
- how to update and display an option without reloading the page
- Change “en-US” to “en”
- Echo a shortcode div after every 3 posts
- Code snippet to show current php version inside “At a Glance” box in admin
- getting url from variable that calls picture of current page, not working. Only displays everything instead of url
- Make textarea required. Help [closed]
- How to Update an old theme for the latest wordpress version
- How to edit the styles for the table of pages/post listed in the admin when you click on pages/posts?
- How can I use custom menus with a Bootstrap WordPress theme?
- foreach repeat html structure after every nth for attachment [closed]
- how to show images without passing it to timthumb.php file for resizing
- How to redirect outgoing links via my own website
- How to implement __() function in my theme’s php file?
- In PHP how do I make my navigation bar show certain links to admins only?
- Get current user id in function php
- Proper way to remove html code on child theme
- How to pass parameters in wordpress shortcode?
- Display a custom name when the user has no name settle in his account
- Why can’t I connect to the wordpress install page with Nginx?
- 400 bad request admin-ajax file upload
- Custom Loop.php having a loop inside a loop
- WordPress Slider is not working
- Reload page with a different shortcode when a user selects from a dropdown
- Noob question: want to remove the “site identity” logo for specific part of website only
- WordPress login with external php script
- Woocommerce Add custom “Add to cart button” in single page with tags
- How do I fetch a data from an external database into my wordpress homepage
- Widget Update problems using a for loop
- WP Admin Bar – Get current theme name as custom menu title
- How to map my php files as the files for pages
- Property value of null when value is assigned inside a method hooked to the wp action hook
- WordPress Errors after Host Migration
- split searchresults into different topics?
- ajax form function error
- Simple Probléme in wordpress
- How to store the_post_thumbnail() value in a variable
- Use HTML Form Data in PHP Function – WordPress Admin Page
- REST API custom endpoints for metaboxes
- generate excerpt from the part of big text dump that contains keyword
- How to sort search result by post_title, then by post_content
- Custom Admin Menu Report for Specific User ID