Created
May 9, 2018 14:39
-
-
Save KaineLabs/84c1acf16549272a6644f50ee977a339 to your computer and use it in GitHub Desktop.
Redirect User After Registration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Redirect User After Registration | |
*/ | |
function yzc_redirect_after_registration($user) { | |
$redirect_url = 'www.kainelabs.com'; | |
bp_core_redirect( $redirect_url ); | |
} | |
add_action( 'bp_core_signup_user', 'yzc_redirect_after_registration', 100, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment