apply_filters( 'user_contactmethods', string[] $methods, WP_User $user )

Filters the user contact methods.

Parameters

$methods

(string[]) Array of contact method labels keyed by contact method.

$user

(WP_User) WP_User object.

More Information

Customize the contact information fields available to your WordPress users. Edits the available contact methods on a user’s profile page. Contact methods can be both added and removed.

Source

File: wp-includes/user.php

View on Trac

Changelog

Version Description
2.9.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/user_contactmethods