WordPress.org

Support

Support » How-To and Troubleshooting » Hide “Personal Options” in User Profile

Hide “Personal Options” in User Profile

Viewing 5 replies - 1 through 5 (of 5 total)
  • Any ideas?

    Surely there must be a hook.

    I would love to know this also!

    I just found a plugin that does a LOT more than this, but it looks like it has found a way to remove those profile options.

    I haven’t dug through the code to find the hooks, but I imagine it is in there.

    A way to achieve this would be to add the code yourself.

    But be aware that if you update and this file was modified you will need to add it once more.

    In wp-admin > find user-edit.php
    on line 190 you have

    <h3><?php _e('Personal Options'); ?></h3>

    Insert

    <div style="display:none;">

    before that line.

    and on line 233 right before

    <?php
    if ( $is_profile_page )
    do_action('profile_personal_options', $profileuser);
    ?>

    add your closing div.

    That all, your options will now be hidden from others. (and you)
    You could always add a conditional comment that would check if it’s an admin or not.

    This was tested only on WP 2.7.1.

    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide “Personal Options” in User Profile’ is closed to new replies.
Skip to toolbar