How to Remove User Contact Fields in WordPress

Categories Components, Tutorials, Users
Remove User Contact Fields in WordPress

In the last article, we learned how to add additional user contact fields to WordPress user profiles. But what if you want to remove user contact fields? You can use user_contactmethods filter here as well to remove user contact fields.

Removing User Contact Fields

It can come handy when a plugin is trying to insert some extra user contact fields. Let’s try removing the Facebook field that we added in the last article. You can add the following code to the functions.php file of your theme to do that:

That will remove the Facebook field from user contact fields. Now if you want to add some other fields in place of Facebook, you check this tutorial which shows you how to add additional user contact fields.

Leave a Reply

Your email address will not be published. Required fields are marked *