I got it.
Just I need to change
$user_signon = wp_signon( $info, false );
with
$user_signon = wp_signon( $info, is_ssl() ? true : false );
Related Posts:
- Changing Admin Menu Labels
- Is there ANY way to remove comments function and section totally?
- How to display a static HTML page while setting up a WordPress site?
- How can I uninstall a language?
- Best way to present options for home page in admin?
- How to add a custom metabox to the Menu Management admin screen?
- How to make ajax call in wordpress in right way?
- Delete Post From front Page ( With Wp-admin restriction )
- Custom user role that can only edit specific (non-custom-type) page and all child pages [duplicate]
- Add mass action to wp-admin/users.php
- Add button in TinyMCE editor to insert text
- Add column to pages table
- wp-admin – save options without refreshing?
- How to get the password and username of the add new user form (admin back end) in wordpress
- Change the Return URL from the Customizer
- Where can I edit Admin Panel Page file
- WordPress Error establishing a database connection For Admin login only
- How do you modify CSS files via admin panel?
- Image editing: “Edit Original” and “Replace” buttons missing on old posts
- WooCommerce – filter by featured products in admin
- How to prevent parent admin page from appearring as a child admin page
- Replace wordpress login logo with custom text
- How to clone wp-admin and make a new dashboard controlled by your code?
- Failed to load resource admin-ajax.php
- Custom WordPress Dashboard for Specific user role
- After login get “403 Forbidden”
- How to display a Ninja Form on the WordPress admin pages
- Why are my frontend theme styles bleeding into the backend?
- Show Welcome Panel on Dashboard for every user
- Is it possible to add an item the Post Publish panel?
- Execute script only on certain admin pages
- Uncheck the box “Send User Notification” by default on new-user.php
- Woocommerce: Add column to ORDERS admin page with items purchased
- New wordpress install, what are the reasons the “Install Themes” tab is missing?
- Customise WordPress Update Notice in wp-admin backend area
- Post Bulk Update
- wp_comments table really big casuing /wp-admin/edit-comments.php to slowly load
- I get a 404 page on /wp-admin but not wp-login but as soon as I login I get a 404 again [closed]
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- password reset link being sent as HTTP?
- How to make the front-end RTL without changing the admin panel language?
- sort tags by tag ID in admin panel
- Restrict Author role to only 3 wp-admin pages
- Post.php is blocked by server? How to unblock? [closed]
- How to fix ‘WordPress redirection loop problem in wp-login.php page’?
- WP-Admin shows (1) update but there is no update for plugin, theme or WordPress
- Do I have to face security problems if I changing default role to Contributor
- wp-admin remove part of the url
- wp-admin 302 redirects
- WP admin user search doesn’t return all users
- Where are screen options when in admin on mobile?
- post-new.php?post_type=product is not loading properly
- How to use underscore.js in WordPress Admin
- Detect Featured Image remove while editing post in wp-admin (client-side)
- Cannot log in to the admin, no error message [closed]
- Need help for WordPress User Session Management?
- meta box on new admin page
- Create reviews and star-rating for user accounts in wp-admin [closed]
- Disable Admin CP authentication (or auto login)
- Site Crashes When Updating to WordPress (Version 3.6)
- can’t access backend while frontend works perfect
- Admin top level menu, pointing to an external url
- Change of IP Address
- How can I control which plugins run in the dashboard?
- How to change home page only in WordPress
- User Roles: How to hide a plugin from showing in WP-Admin?
- Too Many Redirects – WP-Admin Only
- WP Admin Login keeps redirecting to login
- WordPress admin section appears broken
- Is WordPress secure enough for a multi-user article directory?
- Pages section (only) not loading after publishing large number of pages
- Wp-admin widgets have no title texts
- How to create directory under my active theme directory
- CPU overload spam – redirect link to wp-admin and new post
- define two login page url
- wp-admin 503 error
- Admin Page access
- On Users (user.php) in wp-admin disable/hide “Bulk Actions” and “Change Role To”
- Add HTML to custom post type edit page
- WP site after login keeps redirecting to looped url [closed]
- Locked out of site admin after change of URL
- Login issue with subdomain installs
- Redirect from wp-admin back to page
- How can I can I make changes to a WP project I pulled from GItHub?
- WordPress critical error on wp-admin page with 100% permissions
- admin-ajax and external service interaction
- Add admin page to the top of the admin panel
- Admin page changes the $_POST data
- Add item to admin panel – w/o plugin & theme
- site identity will not update [closed]
- Show only childs and grandchilds of certain post in admin
- str_replace in wp-admin
- Admin area is not loading properly
- Using meta_query in add_query_arg
- Creating another wordpress site as sub-domain of a wordpress site
- Is it possible to change the images source that are shown in the admin side?
- Using query string on edit CPT page
- $current_screen if condition for a specific page in admin
- All of my WordPress sites have Bold Open Sans
- Https Website: CSS and JS files load in http and admin page does not load too