Title: Adding Required Fields Into Admin Email
Last modified: December 1, 2016

---

# Adding Required Fields Into Admin Email

 *  [digi2016](https://wordpress.org/support/users/digi2016/)
 * (@digi2016)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/adding-required-fields-into-admin-email/)
 * 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 9 years, 6 months ago by [digi2016](https://wordpress.org/support/users/digi2016/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/adding-required-fields-into-admin-email/#post-8512403)
 * 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 9 years, 6 months ago by [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/).
 *  Thread Starter [digi2016](https://wordpress.org/support/users/digi2016/)
 * (@digi2016)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/adding-required-fields-into-admin-email/#post-8521563)
 * 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: [info@digistudios.com](https://wordpress.org/support/topic/adding-required-fields-into-admin-email/info@digistudios.com?output_format=md)
 * 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](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/adding-required-fields-into-admin-email/#post-8540131)
 * 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.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/adding-required-fields-into-admin-email/#post-8540131)
 * Status: not resolved