[wp-trac] [WordPress Trac] #23441: Custom fields for authors

WordPress Trac noreply at wordpress.org
Sun Feb 25 07:46:18 UTC 2024


#23441: Custom fields for authors
-----------------------------+------------------------
 Reporter:  rubberduck       |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Users            |     Version:  3.3.2
 Severity:  normal           |  Resolution:  duplicate
 Keywords:                   |     Focuses:
-----------------------------+------------------------

Comment (by mbalt214):

 Here it is
 {{{#!php
 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: <https://core.trac.wordpress.org/ticket/23441#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list