[wp-trac] [WordPress Trac] #11541: Add Twitter to User Profile Field

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 21 03:25:57 UTC 2009


#11541: Add Twitter to User Profile Field
-------------------------+--------------------------------------------------
 Reporter:  ShaneF       |       Owner:  ShaneF          
     Type:  enhancement  |      Status:  accepted        
 Priority:  normal       |   Milestone:  3.0             
Component:  Users        |     Version:  2.9             
 Severity:  normal       |    Keywords:  has-patch commit
-------------------------+--------------------------------------------------

Comment(by nacin):

 The Twitter explosion potentially warrants its inclusion in core, but that
 filter was added in 2.9 and makes it extremely easy:

 {{{
 function add_twitter_as_contact_method( $user_contactmethods ) {
    return array_merge( $user_contactmethods, array( 'twitter' => 'Twitter'
 ) );
 }
 add_filter( 'user_contactmethods', 'add_twitter_as_contact_method' );
 ...
 the_author_meta('twitter');
 }}}

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


More information about the wp-trac mailing list