[wp-trac] [WordPress Trac] #12833: Custom User Fields

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 3 21:26:50 UTC 2010


#12833: Custom User Fields
-----------------------------+----------------------------------------------
 Reporter:  GuruXL           |       Owner:                
     Type:  feature request  |      Status:  new           
 Priority:  normal           |   Milestone:  Future Release
Component:  Users            |     Version:                
 Severity:  normal           |    Keywords:  user, profile 
-----------------------------+----------------------------------------------

Comment(by nacin):

 As of 2.8 it's easier than that for contact fields:

 {{{
 add_filter( 'user_contactmethods', 'my_user_contactmethods' );
 function my_user_contactmethods( $methods ) {
    // $methods is by default an array of aim, jabber, etc.
    return array_merge( $methods, array( 'twitter' => 'Twitter', 'facebook'
 => 'Facebook', 'phone' => 'Phone', 'address' => 'Zip Code' ) );
 }
 }}}

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


More information about the wp-trac mailing list