Function: _wp_get_user_contactmethods

_wp_get_user_contactmethods( WP_User $user )

The old private function for setting up user contact methods.

Use wp_get_user_contact_methods() instead.

Parameters

Name Type(s) Default Value Description
$user WP_User null

Optional. WP_User object. Default null.

Returns

array

Array of contact methods and their labels.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.