empty new member form
-
Hello, I have a snippet code that allows me to send an email to the member who sponsors a new member, it helps filter fraudsters. I have a problem, when it is activated, when a member fills out the registration form, once he has clicked on the validation email link, the fields he filled in when registering are empty , he is obliged to redo his profile. I don’t know why, can you help me?
<?php /** * Set custom email notification template and setting */ function um_custom_validate_account( $notifications ){ $notifications['um_custom_validate_account'] = array( 'key' => 'um_custom_validate_account', 'title' => __( 'Send Email for Sponsors Validation','ultimate-member' ), 'subject' => '{site_name} - Someone you have sponsored on the site needs to attention', 'body' => 'Hi,'. ' You have sponsored "{profile_name}" on the site.'. '', 'description' => __('Whether to send the sponsor an email when someone registered has sponsored with.','ultimate-member'), 'recipient' => 'admin', 'default_active' => true ); return $notifications; } add_filter( 'um_email_notifications', 'um_custom_validate_account', 10, 1 ); /** * Send email notification to the sponsor */ function um_notify_sponsors($data) { $sponsor_recipient = $data['email_parrain']; $profile_name =$data['parrain']; $profile_url = ""; UM()->mail()->send( $sponsor_recipient, 'um_custom_validate_account', array( 'plain_text' =>0 , 'tags' => array( '{profile_name}', '{profile_url}', ), 'tags_replace' => array( $profile_name, $profile_url, ) ) ); } add_action("um_before_save_filter_submitted","um_notify_sponsors",10, 1); ?>
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘empty new member form’ is closed to new replies.