How to remove some fields from the user profile?

If you want to remove the description field, for instance, you can simply remove it from the array:

function remove_some_profile_fields($fields) {
    unset($fields['description']);
    return $fields;
}
add_filter('cuar/core/user-profile/get_profile_fields', 'remove_some_profile_fields');

If you want to find the IDs of the profile fields:

  • open Chrome and its page inspector CTRL + SHIFT + I
  • select the field you want to identify CTRL + SHIFT + C
  • look for a class that looks like cuar-field-id-{identifier} where {identifier} is the ID of your field
remove profile fields wordpress user meta
Finding profile fields IDs on Chrome