_get_additional_user_keys

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

Description

(array) _get_additional_user_keys( (WP_User) $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.

Returns (array)

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

Parameters (1)

0. $user (WP_User)
WP_User instance.

Usage

  1. if ( !function_exists( '_get_additional_user_keys' ) ) { 
  2. require_once ABSPATH . WPINC . '/user.php'; 
  3.  
  4. // WP_User instance. 
  5. $user = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = _get_additional_user_keys($user); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/user.php  
  1. function _get_additional_user_keys( $user ) { 
  2. $keys = array( 'first_name', 'last_name', 'nickname', 'description', 'rich_editing', 'comment_shortcuts', 'admin_color', 'use_ssl', 'show_admin_bar_front', 'locale' ); 
  3. return array_merge( $keys, array_keys( wp_get_user_contact_methods( $user ) ) );