echo'<input name="user_sex" type="text" class="input" value=""/>';
add_action( 'personal_options_update', 'true_save_profile_fields' );
add_action( 'edit_user_profile_update', 'true_save_profile_fields' );
add_action( 'user_register', 'true_save_profile_fields' );
function true_save_profile_fields( $user_id ) {
if ( isset( $_POST['r_register-submit'] )) {
update_user_meta( $user_id, 'user_number', sanitize_text_field( $_POST[ 'user_number' ] ) );
}
}
<input name="number" class="required" placeholder="<?php _e('Number','workscout_core'); ?>" type="number"/>