Created
April 11, 2020 03:49
-
-
Save KaineLabs/3554ef2a09c2840adf221e3be2de1252 to your computer and use it in GitHub Desktop.
Redirect User After Activation
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 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 ); |
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
This code is already added to my bp-custom.php file, but its not working.