Grow your CSS skills. Land your dream job.

Include additional fields on registration form and email template?

  • # September 22, 2011 at 12:33 pm

    Does anyone know of a way to include additional fields onto the registration form for WordPress where those new field values could be included in the email generated when a new user is set up?

    I’ve tried using Theme My Login but running into issues where it doesn’t appear to file the fields. I’m using the following:

    function tml_new_user_registered( $user_id ) {
    if ( isset( $_POST ) )
    update_user_meta( $user_id, 'user_first', $_POST );
    if ( isset( $_POST ) )
    update_user_meta( $user_id, 'user_last', $_POST );
    if ( isset( $_POST ) )
    update_user_meta( $user_id, 'user_company', $_POST );
    if ( isset( $_POST ) )
    update_user_meta( $user_id, 'user_address', $_POST );
    if ( isset( $_POST ) )
    update_user_meta( $user_id, 'user_phone', $_POST );
    if ( isset( $_POST ) )
    update_user_meta( $user_id, 'user_fax', $_POST );
    }
    add_action( 'tml_new_user_registered', 'tml_new_user_registered' );
    ?>
    # September 23, 2011 at 9:32 am

    Nevermind. I got it working. Still some issues with the plugin which I mentioned to the developer.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".