Filters the user contact methods.
$methodsstring[]$userWP_User|nullwp-includes/user.php:2887wp_get_user_contact_methods() * * @since 2.9.0 * * @param string[] $methods Array of contact method labels keyed by contact method. * @param WP_User|null $user WP_User object or null if none was provided. */ return apply_filters( 'user_contactmethods', $methods, $user );} /** * The old private function for setting up user contact methods. * * Use wp_get_user_contact_methods() instead.Introduced in 2.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.