How can I hide Social Media fields in the User Profile?

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer