How to use the universal login (hosted page) with wordpress?

That should work fine, though I would recommend wp_safe_redirect() for this use. Here is a more general solution I just put together:

The is_page() works fine if that’s the slug of your My Account page but you can also get the page ID and use that. This also redirects back to the My Account page on authentication

1 Like