This blog is reader-supported. When you make a purchase through links on my site I may make a small commission at no additional cost to you.
Do you want to know how to hide or disable WordPress admin dashboard user profile page fields without plugins?
Is your goal to:
- Clean up the WP User Profile page
- Remove fields from the WP User Profile page
- Disable fields from the WP User Profile page
- Hide fields from the WP User Profile page
- Not use a plugin
WP User Fields Aren’t Necessary
Perhaps your website or application doesn’t need all the user fields and you would like to remove some from the screen.
By default, WordPress user profile page shows quite a few fields — there is first name, last name, nickname, display name, website, and biographical information fields. And, sometimes plugins will add even more fields to the page for external links and social profiles (like Yoast). Most of the fields on the user profile page are optional, but too many unneeded or unused fields can quickly confuse people.
No Plugins Necessary
Good news — you can remove and disable unwanted fields from the WP User Profile admin page without using a plugin.
Some Fields are Required
Bad news — some fields cannot be completely programmatically removed.
Certain fields are required and need to be submitted with the form. These fields cannot be removed from the page because when they are not present it can cause errors with submitting the profile update form or with other functions that require at least a blank value for the field keys, but using WP’s built-in jQuery functionality you can at least hide them from the user.
Removing WP User Profile Fields
To the best of my Googling — the theme color picker is the only field that can be removed using a WP hook.
Without further adieu, the following code snippet can be pasted into your theme’s (or child theme’s)
This function checks that you’re in the admin area, gets rid of the theme color picker, removes optional fields, and visually hides required fields. Using jQuery element selectors, you can pick and choose which fields to show and hide.
Share this post!