Core Function
View Source on Trac ↗ wp_get_user_contact_methods()
wp_get_user_contact_methods( mixed $user = null ) Sets up the user contact methods.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (WP_User | | null) $user Optional. WP_User object. Required |
Return Value
(string[])
Array of contact method labels keyed by contact method.
Function Information
Since Version
3.7.0
Source File
wp-includes/user.php
Advertisement