![]() Then add the 'redirect', if the URL has the redirect_to=. $args = array( 'id_username' => 'user', 'id_password' => 'pass' ) Dozens of free, customizable, mobile-ready designs and themes. So if you want to redirect to the previous page, then remove the redirect argument above, or use the code below, which means if redirect_to= is present in the current URL as in /login/?redirect_to=, then the specified URL will be used instead: // Define your $args like this: Create a free website or build a blog with ease on. It's because in your loginform() function, the 'redirect' => home_url() below sets the redirect URL to the homepage URL: $args = array('redirect' => home_url(), 'id_username' => 'user','id_password' => 'pass',) For more information on this release, read the WordPress 6.3 announcement. thank you :)Īfter logged in it wont redirect to previous page WordPress: Publish your passion Create a place for your business, your interests, or anything elsewith the open source platform that powers the web. On August 8, 2023, WordPress 6.3 Lionel was released to the public. Then called to non logged in users to log in current page they are in by adding this code to echo ''.esc_html( _( 'login', 'mytheme' )).' ' Įverything work, but after logged in it wont redirect to previous page. Im trying to redirect same page using wp_login_form().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |