Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created April 11, 2020 03:49
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/3554ef2a09c2840adf221e3be2de1252 to your computer and use it in GitHub Desktop.
Save KaineLabs/3554ef2a09c2840adf221e3be2de1252 to your computer and use it in GitHub Desktop.
Redirect User After Activation
<?php
/**
* Redirect User After Activation
*/
function yzc_redirect_after_activation($user) {
$redirect_url = 'yoururl';
bp_core_redirect( $redirect_url );
}
add_action( 'bp_core_activated_user', 'yzc_redirect_after_activation', 100, 1 );
@sachinchatterG
Copy link

This code is already added to my bp-custom.php file, but its not working.

@AlainMinnoy
Copy link

This code generates a critical error on my website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment