Guest User

User Contact Methods

a guest
Feb 15th, 2012
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. add_filter( 'user_contactmethods' , 'wps_change_contactmethods' , 10 , 1 );
  2. /**
  3.  * Change Contact Methods in User Profile
  4.  *
  5.  */
  6. function wps_change_contactmethods( $contactmethods ) {
  7.  
  8.        // Add Contact Methods
  9.         $contactmethods['twitter'] = 'Twitter';
  10.         $contactmethods['facebook'] = 'Facebook';
  11.         $contactmethods['linkedin'] = 'LinkedIn Profile URL';
  12.         $contactmethods['flickr'] = 'Flickr';
  13.         $contactmethods['youtube'] = 'YouTube';
  14.         $contactmethods['stumbleupon'] = 'StumbleUpon';
  15.         $contactmethods['google_profile'] = 'Google Profile URL';
  16.         $contactmethods['gmail'] = 'Gmail';
  17.  
  18.        // Remove Contact Methods
  19.        unset( $contactmethods['aim'] );
  20.        unset( $contactmethods['yim'] );
  21.        unset($contactmethods['jabber']);
  22.  
  23.        return $contactmethods;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment