Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/84c1acf16549272a6644f50ee977a339 to your computer and use it in GitHub Desktop.
Save KaineLabs/84c1acf16549272a6644f50ee977a339 to your computer and use it in GitHub Desktop.
Redirect User After Registration
<?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