WordPress.org

Ready to get started?Download WordPress

Forums

Hide "Personal Options" in User Profile (6 posts)

  1. djquinn
    Member
    Posted 5 years ago #

    Is there a hook to hide the Personal Options in the User Profile? My setup with the User Profile would look hot with RegisterPlus if I could only get rid of the "Visual Editor" option, "Admin Color Scheme," and "Keyboard Shortcuts." I don't care if they're still there, as long as they aren't visible.

    I wish it were as easy as using a custom stylesheet on the Dashboard (which I have, at the moment), but those options aren't enclosed by a div with a class/id I can target with display: none

  2. djquinn
    Member
    Posted 5 years ago #

    Any ideas?

  3. djquinn
    Member
    Posted 5 years ago #

    Surely there must be a hook.

  4. randyhoyt
    Member
    Posted 5 years ago #

    I would love to know this also!

  5. randyhoyt
    Member
    Posted 5 years ago #

    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.

  6. blackbookdesign
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic