wp_get_user_contact_methods
wp_get_user_contact_methods ( $user = null )
Parameters:- (WP_User|null) user Optional. WP_User object.
Returns:- (string[]) Array of contact method labels keyed by contact method.
Defined at: - Introduced in WordPress: 3.7.0
- Deprecated in WordPress: —
Description
Sets up the user contact methods.Default contact methods were removed in 3.6. A filter dictates contact methods.