• Resolved Taeo

    (@taeo)


    Hi,

    First, thank you for the awesome plugin. This has saved me a lot of time. However I’ve run into a bit of an issue.

    If I provide a “redirect_to” attribute for the registration field it ends up replacing the form action. This results in the registration form not actually doing anything other than redirecting to another page. Perhaps I am missing something but I can’t figure out why the redirect_to value would be assigned to the form action.

    /inc/forms.php lines 947 – 949

    https://wordpress.org/plugins/wp-members/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Yes, that’s a problem in the current version and will be addressed in the next update (which is expected to be 3.1).

    In the meantime, you may want to use the wpmem_register_redirect filter instead.

    Thread Starter Taeo

    (@taeo)

    Thank you! This worked out well.

    Just FYI – the issue I was trying to overcome was the fact that after a successful registration the register form shortcode would display a success message and the login form. There are two issues with this…

    1) Since we’re still on the registration page the content on that page ( I have an h1 before it and some policy information/links after it ) might confuse the user. Minor concern but still something to consider.

    2) If you make a mistake or typo when using this login form the page refreshes and displays the registration form again – no error messages or anything.

    I fixed this by using the wpmem_register_redirect_filter to redirect the user to the standard login page with a query string to trigger a success message.

    Plugin Author Chad Butler

    (@cbutlerjr)

    Thanks – that is something that seems to have slipped by – quite likely for a very long time. I’ve noted it in the project list and will look to address it in a future update (the registration redirect for the shortcode is also something that is on that list).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Providing "redirect_to" attribute changes form action’ is closed to new replies.