WordPress at Your Fingertips
function is not described

_get_additional_user_keys() WP 3.3.0

The list of keys returned via this function are dependent on the presence of those keys in the user meta data to be set.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


String[]. List of user keys to be populated in wp_update_user().


_get_additional_user_keys( $user );
$user(WP_User) (required)
WP_User instance.

Code of _get_additional_user_keys() WP 5.8.3

function _get_additional_user_keys( $user ) {
	$keys = array( 'first_name', 'last_name', 'nickname', 'description', 'rich_editing', 'syntax_highlighting', 'comment_shortcuts', 'admin_color', 'use_ssl', 'show_admin_bar_front', 'locale' );
	return array_merge( $keys, array_keys( wp_get_user_contact_methods( $user ) ) );