Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

_wp_get_user_contactmethods() WordPress Function

The wp_get_user_contactmethods() function is used to get the user contact methods in WordPress. This function is used to get an array of the user contact methods that are available.

_wp_get_user_contactmethods( WP_User|null $user = null ) #

The old private function for setting up user contact methods.


Description

Use wp_get_user_contact_methods() instead.


Top ↑

Parameters

$user

(WP_User|null)(Optional) WP_User object.

Default value: null


Top ↑

Return

(string[]) Array of contact method labels keyed by contact method.


Top ↑

Source

File: wp-includes/user.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More