Skip to content

Instantly share code, notes, and snippets.

@ioniacob
Forked from orfeomorello/functions.php
Last active May 21, 2022 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ioniacob/6ea7e8cd1021335fcac6099a37cb5c01 to your computer and use it in GitHub Desktop.
Save ioniacob/6ea7e8cd1021335fcac6099a37cb5c01 to your computer and use it in GitHub Desktop.
Customize Wordpress Profile
function remove_personal_options(){
echo '<script type="text/javascript">jQuery(document).ready(function($) {
$(\'form#your-profile > h2:first\').remove(); // remove the "Personal Options" title
$(\'form#your-profile tr.user-rich-editing-wrap\').remove(); // remove the "Visual Editor" field
$(\'form#your-profile tr.user-syntax-highlighting-wrap\').remove(); // remove the "resaltado de sintaxis al editar código" field
$(\'form#your-profile tr.user-admin-color-wrap\').remove(); // remove the "Admin Color Scheme" field
$(\'form#your-profile tr.user-comment-shortcuts-wrap\').remove(); // remove the "Keyboard Shortcuts" field
$(\'form#your-profile tr.user-admin-bar-front-wrap\').remove(); // remove the "Toolbar" field
$(\'form#your-profile tr.user-language-wrap\').remove(); // remove the "Language" field
$(\'form#your-profile tr.user-first-name-wrap\').remove(); // remove the "First Name" field
$(\'form#your-profile tr.user-last-name-wrap\').remove(); // remove the "Last Name" field
$(\'form#your-profile tr.user-nickname-wrap\').hide(); // Hide the "nickname" field
$(\'table.form-table tr.user-display-name-wrap\').remove(); // remove the “Display name publicly as” field
$(\'table.form-table tr.user-url-wrap\').remove();// remove the "Website" field in the "Contact Info" section
$(\'h2:contains("About Yourself"), h2:contains("About the user"), h2:contains("Name") \').remove(); // remove the "About Yourself" and "About the user" and "Name" titles
$(\'form#your-profile tr.user-description-wrap\').remove(); // remove the "Biographical Info" field
$(\'form#your-profile tr.user-profile-picture\').remove(); // remove the "Profile Picture" field
$(\'form#your-profile tr.user-soundcloud-wrap\').remove(); // remove
$(\'form#your-profile tr.user-wikipedia-wrap\').remove(); // remove
$(\'form#your-profile tr.user-facebook-wrap\').remove(); // remove
$(\'form#your-profile tr.user-twitter-wrap\').remove(); // remove
$(\'form#your-profile tr.user-googleplus-wrap\').remove(); // remove
$(\'form#your-profile tr.user-pinterest-wrap\').remove(); // remove
$(\'form#your-profile tr.user-tumblr-wrap\').remove(); // remove
$(\'form#your-profile tr.user-stumbleupon-wrap\').remove(); // remove
$(\'form#your-profile tr.user-wordpress-wrap\').remove(); // remove
$(\'form#your-profile tr.user-instagram-wrap\').remove(); // remove
$(\'form#your-profile tr.user-dribbble-wrap\').remove(); // remove
$(\'form#your-profile tr.user-vimeo-wrap\').remove(); // remove
$(\'form#your-profile tr.user-linkedin-wrap\').remove(); // remove
$(\'form#your-profile tr.user-rss-wrap\').remove(); // remove
$(\'form#your-profile tr.user-deviantart-wrap\').remove(); // remove
$(\'form#your-profile tr.user-myspace-wrap\').remove(); // remove
$(\'form#your-profile tr.user-skype-wrap\').remove(); // remove
$(\'form#your-profile tr.user-youtube-wrap\').remove(); // remove
$(\'form#your-profile tr.user-picassa-wrap\').remove(); // remove
$(\'form#your-profile tr.user-flickr-wrap\').remove(); // remove
$(\'form#your-profile tr.user-blogger-wrap\').remove(); // remove
$(\'form#your-profile tr.user-spotify-wrap\').remove(); // remove
$(\'form#your-profile tr.user-delicious-wrap\').remove(); // remove
$(\'#user_color\').remove(); // remove
$(\'.user-user-login-wrap\').remove(); // remove
$(\'.user-sessions-wrap\').remove(); // remove
});</script>';
}
add_action('admin_head','remove_personal_options');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment