#12076 closed enhancement (duplicate)
Admin > User contact methods extended
Reported by: | F J Kaiser | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.9.1 |
Component: | Users | Keywords: | Usermeta, User, skype, aim, jabber, google talk, yahoo im, facebook, twitter, im |
Focuses: | Cc: |
Description
Hi,
i think we can say, that AIM/Yahoo IM/Jabber are pretty old now. On the one hand i would say: Drop this and leave the implementation to a plugin (me: +1). On the other hand (if it doesn´t get dropped) i would say: extend it. As a minimum i would say: Add Skype.
I found the related function in /wp-includes/registration.php
http://phpxref.ftwr.co.uk/wordpress/nav.html?_functions/index.html
but i don´t know where this get´s saved in the db. if it´s the user_meta-table it should be no problem to pass ex. skype into the functions array. (but i would really like to see this getting depr.)
Change History (5)
#3
@
15 years ago
- Keywords facebook twitter added
so, we can simply change
324 function _wp_get_user_contactmethods() { 325 $user_contactmethods = array( 326 'aim' => __('AIM'), 327 'yim' => __('Yahoo IM'), 328 'jabber' => __('Jabber / Google Talk') 329 ); 330 return apply_filters('user_contactmethods',$user_contactmethods); 331 }
to
324 function _wp_get_user_contactmethods() { 325 $user_contactmethods = array( 326 'twitter' => __('Twitter'), 327 'facebook' => __('Facebook'), 328 'skype' => __('Skype') 329 ); 330 return apply_filters('user_contactmethods',$user_contactmethods); 331 }
I´m sry for simply pasting this in here. i a) don´t know how to add patches b) don´t use twitter c) have no idea what data facebook needs.
edit: (in case leaving this to plugins, which can offer more and more customized options) /wp-admin/user-edit.php > delete row 298 to 307 and /wp-includes/registration.php > delete line 314 to 333 - that should make it.