Forums

Hack needed to remove default user profile fields (5 posts)

  1. adammann33
    Member
    Posted 2 years ago #

    Hi all,

    After *much* investigation, I've given up on there being a plug-in to do this -- so I'm asking hat-in-hand whether anyone has a hack to get rid of the default user profile fields.

    Specifically, I would like to get rid of all the personally identifiable information on the profile page -- the bio, last name, etc., -- as my site is an educational/game site for kids that I'd like to have users log on to for the games and contests, but not reveal any personal information for security reasons.

    Thanks!

  2. Steve Taylor
    Member
    Posted 2 years ago #

    See my post over here.

  3. apljdi
    Member
    Posted 2 years ago #

    One user should not be able to see another user's information anyway, except for administrators of course. I'm not sure what the problem is.

    The default user information form is hardcoded into wp-admin/user-edit.php so, no, you can't really do anything with it directly.

  4. nareshkumar
    Member
    Posted 2 years ago #

    hi all,

    i would like to inform you that my blog http://www.visit4win.com hacked by some one, can you anyone help me to remove the hack.

    expecting your detailed reply.

    bye,

    naresh kumar

  5. e-sushi
    Member
    Posted 2 years ago #

    For WP 2.9.1, you can add the following PHP code to your "functions.php" file in your active theme directory:

    function add_twitter_contactmethod( $contactmethods ) {
      unset($contactmethods['aim']);
      unset($contactmethods['jabber']);
      unset($contactmethods['yim']);
      return $contactmethods;
    }
    add_filter('user_contactmethods','add_twitter_contactmethod',10,1);

    Works like a charm... and actually removes the fields in a clean and neat way.

    Hope that helps? ;)

Topic Closed

This topic has been closed to new replies.

About this Topic