Support » Plugin: WP-Members Membership Plugin » validation link redirect to custom page

  • Hello,

    I need help with changing the redirect page when members click on the link to validate their registration.
    I have read the documentation and my settings are working the way I want, except this one.
    When users click link to validate their registration from the email they receive, they end up on the recover-password page. I need them to be redirected to the custom page I designed for registered users.
    I checked all my settings in the plug-in, and the emails, I can’t find where to change the default for that particular function.
    I also would like to change the default error message “Validation key was expired or invalid” to something a bit friendlier.
    I am usually pretty good at editing small bits of code or using code snippets, up to a point, so if you can tell me how to do this, or where I need to go to edit the settings, that would be great.

    Any help or advice is appreciated, thank you.

    Marie

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

    (@cbutlerjr)

    When users click link to validate their registration from the email they receive, they end up on the recover-password page. I need them to be redirected to the custom page I designed for registered users.

    It actually goes to whatever you have the user profile page set to (which should be the [wpmem_profile] shortcode page). If you have that set to something different, it will be whatever that is set to.

    You can use the wpmem_validation_link_return_url filter the return url:

    add_filter( 'wpmem_validation_link_return_url', function( $url ) {
        return 'https://mydomain.com/my-page/';
    });

    I also would like to change the default error message “Validation key was expired or invalid” to something a bit friendlier.

    That’s not currently possible (at least in a way that would be easy).

    The whole process is new feature. As such, it is undergoing a significant set of changes based on user feedback from the initial rollout. So some of this will be resolved in the next couple of updates. The intention is to have it fairly rigid for full inclusion in the plugin (i.e. not as a setting) by 3.4.0.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.