Good day, I've added the following code to my theme's functions.php
file, which should display a custom field on the user profile screens:
add_action( 'show_user_profile', 'display_user_custom_hash' );
add_action( 'edit_user_profile', 'display_user_custom_hash' );
function display_user_custom_hash( $user ) { ?>
<h3>USERMETA Fields</h3>
<table class="form-table">
<tr>
<th><label>Custom Hash Key</label></th>
<td><input type="text" value="<?php $_GET['user_phone'];" class="regular-text" /></td>
</tr>
</table>
<?php
}
After updating the user profile, the value is not visible in the text input. How can I show the value in the text input after updating the user's profile?