新旧界面对比,旧界面中的 aim,jabber,yim 被去掉了,加入了时下大家最熟悉的 facebook,twitter ……
add_filter( 'user_contactmethods' , 'update_contact_methods' , 10 , 1 );
function update_contact_methods( $contactmethods ) {
// Add new fields
$contactmethods['phone'] = 'Phone';
$contactmethods['mobile'] = 'Mobile';
$contactmethods['address'] = 'Address';
// Remove annoying and unwanted default fields
unset($contactmethods['aim']);
unset($contactmethods['jabber']);
unset($contactmethods['yim']);
return $contactmethods;
}