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

You appear to be a bot. Output may be restricted

Description

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

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

Usage

$string[] = _get_additional_user_keys( $user );

Parameters

$user
( WP_User ) required – WP_User instance.

Returns

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

Source

File name: wordpress/wp-includes/user.php
Lines:

1 to 4 of 4
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 ) ) );
}
 

 View on GitHub View on Trac