Are you looking for a way to remove the default profile fields? While there’s probably a plugin for this, we have created a quick code snippet that you can use to remove default profile fields in WordPress.
Instructions:
All you have to do is add this code to your theme’s functions.php file or in a site-specific plugin:
add_filter('user_contactmethods','hide_profile_fields',10,1); function hide_profile_fields( $contactmethods ) { unset($contactmethods['aim']); unset($contactmethods['jabber']); unset($contactmethods['yim']); return $contactmethods; }
Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly add code snippets in WordPress, so you don’t accidentally break your site.
If you liked this code snippet, please consider checking out our other articles on the site like: 28 best WordPress resume themes and how to fix the error establishing a database connection.
Thanks for this tip, it’s a big help.
Any idea how to remove the 4 items below “Personal Options” including that options title itself?
4 options: disable visual editor, color scheme, keyboard shortcut and admin bar.
Got the color scheme code from you, and able to hide admin bar using css, any idea on the other 2 and the title? Or if there is a cleaner way to remove all at once using filter or remove_action?
This should get rid of all the personal options for you,
function hide_personal_options(){
echo “n” . ‘jQuery(document).ready(function($) { $(‘form#your-profile > h3:first’).hide(); $(‘form#your-profile > table:first’).hide(); $(‘form#your-profile’).show(); });’ . “n”;
}
add_action(‘admin_head’,’hide_personal_options’);
You can do this to hide admin bar,
http://wpsnipp.com/index.php/functions-php/disable-the-new-admin-bar/
[…] This post was mentioned on Twitter by Y Combinator Newest!, newsery5. newsery5 said: WordPress remove default profile fields – http://bit.ly/i7aCV7 – [Hacker News FH] […]