W3cubDocs

/WordPress

_get_additional_user_keys( WP_User $user )

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Returns a list of meta keys to be (maybe) populated in wp_update_user().

Description

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

Parameters

$user

(WP_User) (Required) WP_User instance.

Return

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

Source

File: wp-includes/user.php

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 ) ) );
}

Changelog

Version Description
3.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_get_additional_user_keys