WordPress Add/remove contact info for users with user_contactmethods filter hook Removing contact method


Example

function remove_contact_methods( $contactmethods ) {
    
    unset($contactmethods['facebook_profile']);
    unset($contactmethods['twitter_profile']);
   
    return $contactmethods;
}

add_filter( 'user_contactmethods', 'remove_contact_methods', 10, 1);