Top
Home

/**
* Add additional custom field
*/

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></h3>
<table class="form-table">

<tr>
<th><label for=""></label></th>
<td>
<input type="text" name="" id="" value="<?php echo esc_attr( get_the_author_meta( '', $user->ID ) ); ?>" class="regular-text" /><br />
<span class="description">.</span>
</td>
</tr>

</table>
<?php
}

add_action ( 'personal_options_update', 'MooseFields' );
add_action ( 'edit_user_profile_update', 'MooseFields' );
function MooseFields( $user_id )
{
if ( !current_user_can( 'edit_user', $user_id ) )
return false;

update_usermeta( $user_id, '', $_POST[''] );

}