$referrer_user_id is returning incorrectly
-
I am using wp_referral_code_after_refer_submitted to email the site admin so they have a link to the referree to reward them. For some reason when I concat $referrer_user_id to the URL, no matter what I try it returns the ID with “3D in front of it.
For example, if the user ID is 6. it will return 3D6
I’m not sure where the “3D” is coming from.
If I remove the URL and only call $referrer_user_id for the email message then it will display the ID correctly without the 3D in front of it.
add_action( ‘wp_referral_code_after_refer_submitted’, function ($new_user_id, $referrer_user_id){
$url = “[domain]”.$referrer_user_id;
wp_mail(“[myemail]”, “A member has successfully invited a new user”, $url);}, 10, 2 );
The code above will display https://holistic.devbo.digital/wp-admin/user-edit.php?user_id=3D35
- The topic ‘$referrer_user_id is returning incorrectly’ is closed to new replies.