• TC.K

    (@wp_dummy)


    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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi

    (@esmi)

    What “Personal Options”?

    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' );

    Thread Starter TC.K

    (@wp_dummy)

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

    esmi

    (@esmi)

    Why do you want to remove them?

    Thread Starter TC.K

    (@wp_dummy)

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

    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.

    Thread Starter TC.K

    (@wp_dummy)

    well, finally I got it right.

    Source

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to remove Personal Options in Profile Page?’ is closed to new replies.