Filters the user contact methods.
Parameters
Source
return apply_filters( 'user_contactmethods', $methods, $user );
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
| CARVIEW |
Filters the user contact methods.
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.
return apply_filters( 'user_contactmethods', $methods, $user );
| Used by | Description |
|---|---|
wp_get_user_contact_methods()wp-includes/user.php | Sets up the user contact methods. |
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
Add & remove user contact methods.
Add user contact methods useing OOP.