WordPress at a glance
function is not described

_wp_get_user_contactmethods() WP 2.9.0

The old private function for setting up user contact methods.

Use wp_get_user_contact_methods() instead.

No Hooks.


Array. Array of contact methods and their labels.


_wp_get_user_contactmethods( $user );
WP_User object.
Default: null

Code of wp get user contactmethods: wp-includes/user.php WP 5.2.2

function _wp_get_user_contactmethods( $user = null ) {
	return wp_get_user_contact_methods( $user );