If you ever wondered why in the world there are fields for AOL Instant Messenger and Jabber, etc in the user edit page in WordPress, you probably also wondered how to remove them. And if you wondered how to remove them and looked into it, you’d soon be frustrated.
You see, if you’ve done much with admin screens in WordPress, you probably know that there are filters (PHP) for manipulating the content of most pages. However, there are no filters available for manipulating the content of user edit pages. Annoying.
So, our only option is to manipulate the content with jQuery.
To remove fields, put the following code in your functions.php.
(For every field you want to remove, include its ID in the
ids array that starts on line 10.)
What if you want to remove fields just for one specific user role?
It’s not too hard, you just have to add some code to check what role is assigned to the user currently being edited. Here it is: