Private Access Private Access
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.
Summery Summery
The old private function for setting up user contact methods.
Syntax Syntax
Description Description
Use wp_get_user_contact_methods() instead.
Parameters Parameters
- $user
-
(Optional) WP_User object.
Default value: null
Return Return
(string[]) Array of contact method labels keyed by contact method.
Source Source
File: wp-includes/user.php
* @param string[] $methods Array of contact method labels keyed by contact method. * @param WP_User $user WP_User object. */
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |