Reply To: Stop / customize user registration email.

Home Forums User Registration Stop / customize user registration email. Reply To: Stop / customize user registration email.

#1200

racekatten
Participant

I have started going in this direction in functions.php; seems like working:

class RK_UR_Emailer extends UR_Emailer {
public $query_vars = array();
public static function init() {
if(‘yes’ == get_option(‘user_registration_general_setting_disable_email’)) { return; }
add_action(‘user_registration_after_register_user_action’, array(__CLASS__,’rk_ur_after_register_mail’), 10, 3 );
}
public static function rk_ur_after_register_mail( $valid_form_data, $form_id, $user_id ) {

}

}
remove_action(‘user_registration_after_register_user_action’,array(‘UR_Emailer’,’ur_after_register_mail’));
RK_UR_Emailer::init();