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.

Parameters

$profile_userWP_User
The current WP_User object.

Source

do_action( 'profile_personal_options', $profile_user );

Changelog

VersionDescription
2.0.0Introduced.

User Contributed Notes

  1. Skip to note 2 content

    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.