W3cubDocs

/WordPress

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.

Source

File: wp-includes/user.php

View on Trac

Changelog

Version Description
2.9.0 Introduced.

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