do_action( 'profile_personal_options', WP_User $profile_user )

Fires after the ‘Personal Options’ settings table on the ‘Profile’ editing screen.


Description

The action only fires if the current user is editing their own profile.


Top ↑

Parameters

$profile_user WP_User
The current WP_User object.

Top ↑

Source

File: wp-admin/user-edit.php. View all references

do_action( 'profile_personal_options', $profile_user );

Top ↑

Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by Codex

    Example:

     // 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" name="value" value="<?php echo esc_attr( $meta_value ); ?>" />
    	<?php
    }

You must log in before being able to contribute a note or feedback.