Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If ulogin allows you to "take" this data, then something like this:
add_action( 'show_user_profile', 'my_show_extra_profile_fields' );
add_action( 'edit_user_profile', 'my_show_extra_profile_fields' );
function my_show_extra_profile_fields( $user ) { ?>
<h3>Extra profile information</h3>
<table class="form-table">
<tr>
<th><label for="city">City</label></th>
<td>
<input type="text" name="city" id="city" value="<?php echo esc_attr( get_the_author_meta( 'city', $user->ID ) ); ?>" class="regular-text" /><br />
<span class="description">Please enter your City.</span>
</td>
</tr>
</table>
<?php }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question