This page redirects to an external site: https://developer.wordpress.org/reference/hooks/user_contactmethods/
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.
function modify_user_contact_methods( $user_contact ) {
// Add user contact methods
$user_contact['skype'] = __( 'Skype Username' );
$user_contact['twitter'] = __( 'Twitter Username' );
// Remove user contact methods
unset( $user_contact['aim'] );
unset( $user_contact['jabber'] );
return $user_contact;
}
add_filter( 'user_contactmethods', 'modify_user_contact_methods' );