WordPress.org

Forums

How to remove Personal Options in Profile Page? (8 posts)

  1. TC.K
    Member
    Posted 3 years ago #

    Hi,

    I want to hide/remove the Personal Options in the 'Profile'(wp-admin/profile.php) page.

    I know there are already have a solution for this, but I found that they using jquery to do hide this area. This works, but when a user is disable the browser javascript, it will show up again. So it would not a proper way to remove Personal Options.

    So is there any way to remove Personal Options beside jqeury , css hacks, or core file modification?

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    What "Personal Options"?

  3. Michael Bishop

    Posted 3 years ago #

    If you are referring to the items like AIM, Website, Yahoo IM, you can use a function to remove them.

    Basic example:

    function remove_contactmethods($contactmethods ) {
      // Remove AIM, Yahoo IM, Google Talk/Jabber
      unset($contactmethods['aim']);
      unset($contactmethods['website']);
      unset($contactmethods['yim']);
      unset($contactmethods['jabber']);
      // make it go!
      return $contactmethods;
    }
    add_filter( 'user_contactmethods', 'remove_contactmethods' );
  4. TC.K
    Member
    Posted 3 years ago #

    Nope, the "Personal Options" is containing "Visual Editor", "Admin Color Scheme", "Keyboard Shortcuts", and "Toolbar". They seem can't using the 'unset' to remove.

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    Why do you want to remove them?

  6. TC.K
    Member
    Posted 3 years ago #

    esmi,
    The site I want to create is a member site, so I don't want the user to edit them.

  7. Michael Bishop

    Posted 3 years ago #

    I don't think there currently are any filters to remove those options. You can Google this for some options that hide the fields.

    There's a patch sitting in Trac that adds some filters, but it doesn't look like it's going to make it into 3.4.

  8. TC.K
    Member
    Posted 3 years ago #

    well, finally I got it right.

    Source

Topic Closed

This topic has been closed to new replies.

About this Topic