Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Include additional fields on registration form and email template?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34459
    jacorre
    Participant

    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' );
    ?>
    #87802
    jacorre
    Participant

    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)
  • The forum ‘Back End’ is closed to new topics and replies.