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' );
?>