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.
Parameters
Return
(string[]) Array of contact method labels keyed by contact method.
Source
File: wp-includes/user.php
function _wp_get_user_contactmethods( $user = null ) { return wp_get_user_contact_methods( $user ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |