Home » Blog » Web Design » How To Remove The Personal Options Section From WordPress User Profiles
How To Hide WordPress Personal Options

How To Remove The Personal Options Section From WordPress User Profiles

In a previous post we discussed how to remove irrelevant social media account options from the contact info section in WordPress user profiles and replace them with Facebook, Twitter, Google+, and LinkedIn. Well now we’re going to outline how to remove the personal options section from WordPress user profiles using simple PHP.

Remove WordPress User Profile Options

The hide_personal_options function will remove the Visual Editor option, the Admin Color Scheme selection, the Keyboard Shortcuts option, and the option to show the admin toolbar.

Hide Profile Options In WordPress

Down Copy and paste the code below into your functions.php file to remove personal options.

function hide_personal_options(){
echo "\n" . '<script type="text/javascript">jQuery(document).ready(function($) { $(\'form#your-profile > h3:first\').hide(); $(\'form#your-profile > table:first\').hide(); $(\'form#your-profile\').show(); });</script>' . "\n";
}
add_action('admin_head','hide_personal_options');

function hide personal options

Lead Editor

Jared Harrison is an accomplished tech author and entrepreneur, bringing forth over 20 years of extensive expertise in cybersecurity, privacy, malware, Google Analytics, online marketing, and various other tech domains. He has made significant contributions to the industry and has been featured in multiple esteemed publications. Jared is widely recognized for his keen intellect and innovative insights, earning him a reputation as a respected figure in the tech community.

More Reading

Post navigation

Leave a Comment

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

How to display recent posts on WordPress pages

How To Automatically Add A Search Field To Your WordPress Menu

How to add your Twitter feed to your WordPress website