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

Return

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

Usage

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

Changelog

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 );
}