How to Auto-Redirect After Register? - by Moohbin

This topic has 28 replies, 3 voices, and was last updated 6 years, 8 months ago ago by Rose Tyler

  • Avatar: Moohbin
    Moohbin
    Participant
    August 7, 2017 at 09:19

    Hi mate

    i finding the solution how to auto re-direct after customer make a registration.

    could you please help?

    Thanks.

    27 Answers
    Avatar: laranz
    Laranz
    Participant
    August 10, 2017 at 07:43

    Hi,

    Add this in your functions.php file,

    function wpse_19692_registration_redirect() {
        return home_url( '/my-page' );
    }
    
    add_filter( 'registration_redirect', 'wpse_19692_registration_redirect' );

    More info: https://codex.wordpress.org/Plugin_API/Filter_Reference/registration_redirect

    Let us know,

    Thanks,
    laranz.,

    Avatar: Moohbin
    Moohbin
    Participant
    August 10, 2017 at 11:57

    Doesn’t working…

    Avatar: laranz
    Laranz
    Participant
    August 11, 2017 at 14:05

    Hi,

    What happen if you use the example provided in the codex? https://codex.wordpress.org/Plugin_API/Filter_Reference/registration_redirect

    Let us know,

    Thanks,
    laranz.,

    Avatar: Moohbin
    Moohbin
    Participant
    August 11, 2017 at 14:28

    hi nothing doesn’t happen. Just appeared the green box same original.

    Thanks.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 14, 2017 at 08:16

    Hello,

    Please try this way:
    1. Find block of code

    // **********************************************************************// 
    // ! Registration Form
    //
     **********************************************************************//

    in file framework/theme-functions.php
    2. Add window.location.href=''; after red line https://prnt.sc/g873fu
    We recommend you to make changes in a child theme.

    Regards

    Avatar: Moohbin
    Moohbin
    Participant
    August 14, 2017 at 16:19

    Nothing happen..See in private content..

    Thanks

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 14, 2017 at 16:38

    Please provide FTP access in Private Content.

    Regards

    Avatar: Moohbin
    Moohbin
    Participant
    August 14, 2017 at 16:40

    yep.

    Please, contact administrator
    for this information.
    Avatar: Moohbin
    Moohbin
    Participant
    August 14, 2017 at 17:58

    See in private.

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 15, 2017 at 08:15

    Hello,

    We did nothing on your site.I am checking your topic only now.
    So please confirm that I can connect to your FTP to check the code.

    Regards

    Avatar: Moohbin
    Moohbin
    Participant
    August 15, 2017 at 12:27

    Same as i sent you.

    Confirmed,

    Thanks.

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 15, 2017 at 12:38

    Please provide me a path to folder with the theme.

    Regards

    Avatar: Moohbin
    Moohbin
    Participant
    August 15, 2017 at 12:51

    ok. please see in private.

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 15, 2017 at 13:17

    I do not see previous code into your file.
    Please try to add this code:
    window.location.href='https://www.8theme.com/topic/how-to-auto-redirect-after-register/#post-170100';
    as shown on screenshot http://prntscr.com/g8q4k9
    Clear cache and check.

    Regards

    Avatar: Moohbin
    Moohbin
    Participant
    August 15, 2017 at 13:19

    im removed. because after insert your code its appeared another scroll bar.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 15, 2017 at 13:22

    Please try the last variant of code. Let me know the result.

    Regards

    Avatar: Moohbin
    Moohbin
    Participant
    August 15, 2017 at 13:24

    come on. i tried.

    it’s doesn’t work. nothing happened told u already.

    just appeared only the green mark symbol. that’s it.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 15, 2017 at 13:36

    I’ve added code and now redirect works fine, simply change url.

    Regards

    Avatar: Moohbin
    Moohbin
    Participant
    August 15, 2017 at 16:35

    Thanks Ros. Appreciated.

    Now i found extra scroll bar on chrome but firefox are fine.

  • 1 2
    Viewing 20 results - 1 through 20 (of 28 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.