• I am wanting to make all the required fields in the registration form to show up in the admin email when someone registers, but not sure where or what php file to add this to. Can you please direct me to the correct file, and maybe show me the code that I need to use?

    Right now, the admin only gets the user’s first name and email address.

    Thanks in advance.

    • This topic was modified 8 years, 3 months ago by digi2016.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Just activate the Custom Email module and you can customize it as you wish (e.g. %first_name%, %last_name%, etc).

    • This reply was modified 8 years, 3 months ago by Jeff Farthing.
    Thread Starter digi2016

    (@digi2016)

    Thanks for your response Jeff.

    Still not bringing in all the registration fields into email. Missing First Name, Last Name and Agency Name. This is what I have setup for the admin email:
    First Name: %first_name%
    Last Name: %last_name%
    Agency Name: %agency_name%
    Username Name: %user_login%
    Username Email: %user_email%

    This how the email shows up:
    First Name:
    Last Name:
    Agency Name:
    Username Name: dann
    Username Email: [email protected]

    And this is the register-form.php code:
    <div class=”tml tml-register” id=”theme-my-login<?php $template->the_instance(); ?>”>
    <?php $template->the_action_template_message( ‘register’ ); ?>
    <?php $template->the_errors(); ?>
    <form name=”registerform” id=”registerform<?php $template->the_instance(); ?>” action=”<?php $template->the_action_url( ‘register’, ‘login_post’ ); ?>” method=”post”>
    <?php if ( ’email’ != $theme_my_login->get_option( ‘login_type’ ) ) : ?>

    <p class=”tml-user-login-wrap”>
    <label for=”first_name<?php $template->the_instance(); ?>”><?php _e( ‘First Name’, ‘theme-my-login’ ); ?></label>
    <input type=”text” name=”first_name” id=”first_name<?php $template->the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value( ‘first_name’ ); ?>” size=”20″ />
    </p>

    <p class=”tml-user-login-wrap”>
    <label for=”last_name<?php $template->the_instance(); ?>”><?php _e( ‘Last Name’, ‘theme-my-login’ ); ?></label>
    <input type=”text” name=”last_name” id=”last_name<?php $template->the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value( ‘last_name’ ); ?>” size=”20″ />
    </p>

    <p class=”tml-user-login-wrap”>
    <label for=”agency_name<?php $template->the_instance(); ?>”><?php _e( ‘Agency/School Name’, ‘theme-my-login’ ); ?></label>
    <input type=”text” name=”agency_name” id=”agency_name<?php $template->the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value( ‘agency_name’ ); ?>” size=”20″ />
    </p>

    <p class=”tml-user-login-wrap”>
    <label for=”user_login<?php $template->the_instance(); ?>”><?php _e( ‘Username’, ‘theme-my-login’ ); ?></label>
    <input type=”text” name=”user_login” id=”user_login<?php $template->the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value( ‘user_login’ ); ?>” size=”20″ />
    </p>
    <?php endif; ?>

    <p class=”tml-user-email-wrap”>
    <label for=”user_email<?php $template->the_instance(); ?>”><?php _e( ‘E-mail’, ‘theme-my-login’ ); ?></label>
    <input type=”text” name=”user_email” id=”user_email<?php $template->the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value( ‘user_email’ ); ?>” size=”20″ />
    </p>

    <?php do_action( ‘register_form’ ); ?>

    <p class=”tml-registration-confirmation” id=”reg_passmail<?php $template->the_instance(); ?>”><?php echo apply_filters( ‘tml_register_passmail_template_message’, __( ‘Registration confirmation will be e-mailed to you.’, ‘theme-my-login’ ) ); ?></p>

    <p class=”tml-submit-wrap”>
    <input type=”submit” name=”wp-submit” id=”wp-submit<?php $template->the_instance(); ?>” value=”<?php esc_attr_e( ‘Register’, ‘theme-my-login’ ); ?>” />
    <input type=”hidden” name=”redirect_to” value=”<?php $template->the_redirect_url( ‘register’ ); ?>” />
    <input type=”hidden” name=”instance” value=”<?php $template->the_instance(); ?>” />
    <input type=”hidden” name=”action” value=”register” />
    </p>
    </form>
    <?php $template->the_action_links( array( ‘register’ => false ) ); ?>
    </div>

    Am I missing something?

    Thanks in advance, Todd

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Perhaps you’re not actually saving the fields you added?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Required Fields Into Admin Email’ is closed to new replies.