Leave login URL for my user beautiful

Assuming you’re trying to get rid of the ?redirect_to={url}, you can use the login_url filter to change the login URL, and remove unwanted querystring components with remove_query_arg(): add_filter( ‘login_url’, ‘wpse422493_strip_login_url’ ); /** * Strips `redirect_to` from the querystring. * * @param string $url The login URL. * @return string The filtered login URL. */ function … Read more