// Get the URL of the current page to redirect back to after login. $redirect_url = get_permalink(); // Add the redirect parameter so the user comes back to the 'live' page after logging in. $my_account_url = add_query_arg('redirect_to', urlencode($redirect_url), $my_account_url); // Output the iframe HTML ?>