WordPress.org

Codex

Plugin API/Filter Reference/contactmethods

Description

Customize the contact information fields available to your WordPress users. Edits the available contact methods on a users profile page. Contact methods can be both added and removed.

Parameters

  • array $user_contact an associative array keyed by form field ids with human-readable text as values.

Examples

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' );