This page redirects to an external site: https://developer.wordpress.org/reference/hooks/profile_personal_options/
Hooks above the "Name" section of profile page. This is typically used for adding new fields to WordPress profile pages.
This hook only triggers if a user is viewing their own profile page. There is no equivalent hook at this point for injecting content onto the profile pages of non-current users.
// This will show below the color scheme and above username field
add_action( 'profile_personal_options', 'extra_profile_fields' );
function extra_profile_fields( $user ) {
// get the value of a single meta key
$meta_value = get_user_meta( $user->ID, 'meta_key', true ); // $user contains WP_User object
// do something with it.
?>
<input type="text" value="<?php echo esc_attr( $meta_value ); ?>" name="value" />
<?php
}
The profile_personal_options hook is located in /wp-admin/user-edit.php
Return to Plugin API/Action Reference