[wp-trac] Re: [WordPress Trac] #10240: Contact Info needs to be filterable

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 23 13:44:38 GMT 2009


#10240: Contact Info needs to be filterable
-------------------------+--------------------------------------------------
 Reporter:  joostdevalk  |       Owner:  joostdevalk            
     Type:  enhancement  |      Status:  new                    
 Priority:  normal       |   Milestone:  2.9                    
Component:  Users        |     Version:                         
 Severity:  normal       |    Keywords:  has-patch needs-testing
-------------------------+--------------------------------------------------

Comment(by joostdevalk):

 Sample implementation:


 {{{
 function add_twitter_contactmethod( $contactmethods ) {
         // Add Twitter
         $contactmethods['twitter'] = 'Twitter';

         // Remove Yahoo IM
         unset($contactmethods['yim'])

         return $contactmethods;
 }
 add_filter('user_contactmethods','add_twitter_contactmethod',10,1);
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10240#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list