Reply To: How to get an ID of a user who was just activated?
Thanks again @henrywright I’m executing the following code on account activation but I now get this error “Warning: Missing argument 1 for my_f() … ”
Here is the code:
function my_f( $user_id ) {
// You can do something with $user_id here. Note though, the return value of
// bp_core_activate_signup() may be false. In that case,
// the value of $user_id here will be false.
return $user_id;
}
add_filter( 'bp_core_activate_account', 'my_f' );
function do_thingsz(){
$willie = my_f();
echo "The user id is ";
echo $willie;
}
add_action( 'bp_after_activate_content', 'do_thingsz', 10, 0 );