# Hide Unneeded Profile Fields

> Removes clutter from the profile screen, such as the website, biography, keyboard shortcuts and toolbar options, for non-administrators.

- Type: PHP
- Runs: Admin only
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: users, profile, cleanup
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/hide-unneeded-profile-fields/

## Code

```php
// Profile rows to hide (CSS selectors on profile.php and user-edit.php).
$wpide_hidden_profile_rows = array(
    '.user-url-wrap',
    '.user-description-wrap',
    '.user-comment-shortcuts-wrap',
    '.user-admin-bar-front-wrap',
    '.user-rich-editing-wrap',
    '.user-syntax-highlighting-wrap',
    '#application-passwords-section',
);

add_action( 'admin_head', function () use ( $wpide_hidden_profile_rows ) {
    $screen = get_current_screen();

    if ( ! $screen || ! in_array( $screen->id, array( 'profile', 'user-edit' ), true ) || current_user_can( 'manage_options' ) ) {
        return;
    }

    echo '<style>' . esc_html( implode( ',', $wpide_hidden_profile_rows ) ) . '{display:none !important;}</style>';
} );
```

## Notes

Fields are hidden, not removed; their saved values are kept.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Hide Unneeded Profile Fields" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
