How to change a field id?
-
Hello,
I am using your ultimate member plugin. I integrated your plugin with referral code. I want to add field in registeration form like referral code. Referral code plugin admin says this ( Hello, change YOUR_FIELD_ID to your field id. if you don’t know what a field id is, you need to seek help from Ultimate member guys. I’m not a UM user.
the snippet needs PHP 7>)And give me this code (
add_filter(‘wp_referral_code_new_user_ref_code’ , function ($rec_code, $user_id){
if (!empty( $rec_code)){
return $rec_code;
}return sanitize_text_field( $_POST[‘YOUR_FIELD_ID’]) ?? null;
});`) please let me know how can i implement this?
- The topic ‘How to change a field id?’ is closed to new replies.