• Add-ons
  • Blog
  • Resources
    • Documentation
    • FAQs
    • Code snippets
    • Use cases
    • Support
  • Account
    • My account
    • Checkout
    • Cart
  • English
  • French
  • Add-ons
  • Blog
  • Resources
    • Documentation
    • FAQs
    • Code snippets
    • Use cases
    • Support
  • Account
    • My account
    • Checkout
    • Cart
  • English
  • French
home/Knowledge Base/Code snippets/How to remove some fields from the user profile?

How to remove some fields from the user profile?

4638 views 1 April 13, 2021 Updated on August 22, 2021

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

Finding 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
  • Finding profile fields IDs on Chrome

Was this helpful?

1 Yes  17 No
Related Articles
  • Custom admin notification’s recipients
  • Disable CSS resets and allow integration of third party plugins
  • Automatically add a user to a group
  • Changing the default page shown by the Customer Area
  • Changing the page shown after logout
  • Sidebars: how to disable them

Didn't find your answer? Contact Us

Knowledge base
  • Code snippets 25
  • Use cases 2
  • Community links 5
FAQ
  • About licences 7
  • Pre-sales questions 3
  • After-sales questions 1
  • Plugin usage 8
  • Technical questions 10
  • Payments 4
Documentations
  • Getting started
  • Using code snippets
  • The template system
  • Full documentation
Support
  • Pre-sales Enquiries
  • Main plugin support
  • Premium add-ons support
  • Feature Requests

  How to disable the FTP upload method for private files?

Adding predefined tax rates to the invoicing add-on  

  • Terms and conditions for sales
  • Refund policy
  • Privacy Policy
  • Legal notices
  • Copyright 2021 wp-customerarea.com. All Rights Reserved.