Hello support,
I would like to hide all the Social Media fields in the user profile, how can I do this?
See a screenshot:
https://i.postimg.cc/3NMg8G18/20240120-143342.jpg
I’m using this code below, but it’s not working for all fields (it works well for AIM), but not for the rest, probably because I’m using the Dutch version. Where can I find the source of these fields?
function update_contact_methods( $contactmethods ) {
unset( $contactmethods[‘aim’] );
unset( $contactmethods[‘jabber’] );
unset( $contactmethods[‘yim’] );
unset( $contactmethods[‘url’] );
unset( $contactmethods[‘facebookprofiel-url’] );
unset( $contactmethods[‘linkedin-profiel-url’] );
unset( $contactmethods[‘twitter’] );
unset( $contactmethods[‘myspace-profiel-url’] );
unset( $contactmethods[‘instagram-profiel-url’] );
unset( $contactmethods[‘soundcloud’] );
unset( $contactmethods[‘pinterest’] );
unset( $contactmethods[‘tumblr’] );
unset( $contactmethods[‘youtube’] );
unset( $contactmethods[‘wikipedia’] );
return $contactmethods;
}
add_filter( ‘user_contactmethods’, ‘update_contact_methods’ );
The page I need help with: [log in to see the link]