mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Allow redirect_to param after registration
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user