• Hello,

    I’m using both QuForm and Register Plus Redux on my site.
    I have created a new registerform with Register Plus Redux , with things like “zipcode” and “city.”

    QuForm has the ability to send a mail with variables like “username” , “email address” and etc.
    I would like to add my own variable in QuForm , zipcode and city (made with register plus redux).

    I probably have to do something like this in functions.php:

    function my_newRPR_variables($mailer, $form, $attachments)
    {
        $city = get_user_city_from_register_plus_redux();
        $mailer->Body = str_replace('{city}', $city, $mailer->Body);
    
        $zipcode = get_zipcode_from_register_plus_redux();
        $mailer->Body = str_replace('{zipcode}', $zipcode, $mailer->Body);
    
        // return the $mailer object
        return $mailer;
    }
    add_action('iphorm_pre_send_notification_email', 'my_newRPR_variables', 10, 3);
    add_action('iphorm_pre_send_autoreply_email', 'my_newRPR_variables', 10, 3);

    I’m having troubles with $city and $zipcode , does anyone have an idea how to do this ?

    https://wordpress.org/plugins/register-plus-redux/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Register Plus Redux and QuForm’ is closed to new replies.