_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.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


String[]. Array of contact method labels keyed by contact method.


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


Since 2.9.0 Introduced.

_wp_get_user_contactmethods() code WP 6.1.1

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