-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.php
More file actions
20 lines (16 loc) · 728 Bytes
/
functions.php
File metadata and controls
20 lines (16 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/* Source: http://thomasgriffinmedia.com/blog/2010/09/how-to-add-custom-user-contact-info-in-wordpress/
Removes aim, yim, and jabber contact fields in user profile settings, and replaces it with Facebook, Twitter, and LinkedIn */
function extra_contact_info($contactmethods) {
unset($contactmethods['aim']);
unset($contactmethods['yim']);
unset($contactmethods['jabber']);
$contactmethods['facebook'] = 'Facebook';
$contactmethods['twitter'] = 'Twitter';
$contactmethods['linkedin'] = 'LinkedIn';
$contactmethods['google'] = 'Google Plus';
$contactmethods['tumblr'] = 'Tumblr';
return $contactmethods;
}
add_filter('user_contactmethods', 'extra_contact_info');
?>