• Resolved aberniz

    (@aberniz)


    Hi, user profile includes too many fields (AIM, Yahoo AIM, Jabber / Google Talk, etc.)

    How can I disable or hide them?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    
    function filter_user_contact_methods( $methods ) {
        // To remove a method
        unset( $methods['aim'] );
    
        // To add a method
        $methods['twitter'] = 'Twitter';
    
        // To remove them all
        $methods = array();
    
        return $methods;
    }
    add_filter( 'user_contactmethods', 'filter_user_contact_methods' );
    
    • This reply was modified 8 years, 3 months ago by Jeff Farthing.

    where to add this in order to remove/ hide social accounts

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Either in your theme’s functions.php file or create wp-content/plugins/theme-my-login-custom.php (if it doesn’t already exist) and put it there.

    How to display another method in front-end?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    The code I posted mentions both how to add and remove an item.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove fields in Profiles’ is closed to new replies.