Default contact methods were removed for new installations in WordPress 3.6 and completely removed from the codebase in WordPress 6.9. Use the 'user_contactmethods' filter to add or remove contact methods.
Parameters
$userWP_User|nulloptional
WP_User object.Default: null
Return
string[]
Array of contact method labels keyed by contact method.
Hooks fired · 1
One hook fires while wp_get_user_contact_methods() runs, in this order:
Signature, return type and hooks compared across 5 parsed releases.
6.9.0
Removed references to aim, jabber, and yim contact methods.from the docblock
3.7.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/user.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.