Registration redirect not working

This topic contains 7 replies, has 4 voices, and was last updated by  Paolo 5 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #3937

    Pawel Wojcik
    Free User
    Post count: 3

    Hi, I have problem with registration redirect page. It’s not working when I set custom page in settings. I found the similar problem here: https://userswp.io/support/topic/redirect-not-working

    I read there that I can change code in file userswp->includes->class-forms.php on line no. 55, but I don’t know how put there the custom URL, which I want to redirect after registration.

    #3938

    Paolo
    Site Admin
    Post count: 31206

    HI,

    please provide a link and admin credentials in a private reply and we’ll check why the option is not working.

    Thanks

    #3939

    Pawel Wojcik
    Free User
    Post count: 3

    I don’t have the newest version of plugin, because I changed code in several files for own needs and updates can broke this changes. I just need to change URL for registration redirect for every case. I read can do it change line 55 in class-forms.php, but I don’t know how. I hope you can help me with modification this file, because I can’t update plugin. Sorry if my english is not very good.

    #3940

    Alex Rollin
    Moderator
    Post count: 27815

    I’m sorry we are not able to help with customizations.
    If you can update to the latest version and still have a problem with the built in redirection function we will be happy to take a look.

    #3941

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Try putting the following code in your functions.php file and let us know if it works for you or not:

    add_filter('uwp_registration_force_redirect', 'uwp_registration_force_redirect_cb');
    function uwp_registration_force_redirect_cb(){
        return true;
    }

    Regards,
    Patrik

    #3942

    Pawel Wojcik
    Free User
    Post count: 3

    File functions.php in wp-includes folder? If yes, it doesn’t work.

    #3943

    Patrik
    Moderator
    Post count: 1971

    Hi,

    You need to put the code in the functions.php file of the currently active theme. You should never modify the core WordPress files. If you want us to do this for you then just provide FTP details in private reply and we will do it for you.

    Regards,
    Patrik

    #3944

    Paolo
    Site Admin
    Post count: 31206

    or you can use the code snippets plugin and add it from within WordPress dashboard.

    https://wordpress.org/plugins/code-snippets/

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket