user_contactmethods WordPress Filter Hook
The user_contactmethods hook can be used to add or remove contact methods from a user's profile. This can be useful for providing extra fields for users to input their contact information, or for removing unwanted fields.
apply_filters( 'user_contactmethods', string[] $methods , WP_User|null $user ) #
Filters the user contact methods.
Parameters
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
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |