_wp_get_user_contactmethods

The old private function for setting up user contact methods.

Description

(array) _wp_get_user_contactmethods( (null) $user = null ); 

Use wp_get_user_contact_methods() instead.

Returns (array)

Array of contact methods and their labels.

Parameters (1)

0. $user — Optional. (null) => null
WP_User object. Default null.

Usage

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

Defined (1)

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

/wp-includes/user.php  
  1. function _wp_get_user_contactmethods( $user = null ) { 
  2. return wp_get_user_contact_methods( $user );