*

peter.steele

  • *
  • 2 posts
Redirect on Registration
« on: August 06, 2021, 04:55:46 PM »
Hi, I am trying to redirect a user to a specific page in my child theme after they submit registration. I am hooking onto the 'user_register_completed' hook, which fires in UserActions dot php right after the user's information is saved to the database and right before osclass itself redirects to either the home page or login page based on the site settings.

The contents of my function is very simple, just a call to osc_current_web_theme_path( 'my-page.php' ), followed by die(). However, the function is not working.

For the sake of testing, I have tried substituting my function into the core CWebRegister class in place of the home url redirect that would normally be there. In that case, my function works, but I do not want to actually modify the core files. Can anyone point me in the direction of a solution? Thanks.

Marked as best answer by frosticek on October 18, 2021, 08:05:07 AM
*

peter.steele

  • *
  • 2 posts
Re: Redirect on Registration
« Reply #1 on: August 06, 2021, 07:25:41 PM »
I figured this out. I think I just had a typo because I moved my function from a child theme to a plugin, changing the function name in the process, and then it worked. I moved it back to the child theme just to make sure and it worked there too. Sorry for the trouble.

*

MB Themes

Re: Redirect on Registration
« Reply #2 on: October 18, 2021, 08:05:02 AM »
@peter.steele
Thanks for details  8)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots