From 9c61742c350ac8a8989eb46bf09543257c22a1fa Mon Sep 17 00:00:00 2001 From: Ultimate Member Date: Fri, 29 Jan 2016 21:11:22 +0200 Subject: [PATCH] Allow redirect_to param after registration --- core/um-actions-register.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/um-actions-register.php b/core/um-actions-register.php index 2a8e1f70..8fa42990 100644 --- a/core/um-actions-register.php +++ b/core/um-actions-register.php @@ -171,6 +171,11 @@ do_action("track_{$status}_user_registration"); + // Priority redirect + if ( isset( $args['redirect_to'] ) ) { + exit( wp_redirect( $args['redirect_to'] ) ); + } + if ( $status == 'approved' ) { $ultimatemember->user->auto_login($user_id);