Title: Exclude fields on users export
Last modified: May 4, 2023

---

# Exclude fields on users export

 *  [lukiano880](https://wordpress.org/support/users/lukiano880/)
 * (@lukiano880)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/exclude-fields-on-users-export/)
 * Hello. 
   I’m trying to exclude some fields in export csv file.I am using this 
   filter but do not works.Could you give an orientation about this?Thank you.
 *     ```wp-block-code
       add_filter( 'wpmem_export_args', 'my_export_args' );
   
       function my_export_args( $args ) {
   
           $args['exclude_fields'] = array( 'password', 'confirm_password', 'confirm_email', 'billing_country', 'description', 'tos', 'billing_address_2', 'billing_city', 'billing_postcode', 'billing_state' );
   
           return $args;
       }
       ```
   

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

 *  [airdrummer](https://wordpress.org/support/users/airdrummer/)
 * (@airdrummer)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/exclude-fields-on-users-export/#post-16712045)
 * Wouldn’t it be easier to massage the output?
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/exclude-fields-on-users-export/#post-16714067)
 * The “exclude_fields” parameter in `wpmem_export_args` was deprecated in version
   3.4 (“export_fields” was also deprecated).
 * The “fields” parameter contains the fields being exported. You can use `unset()`
   to remove values from that array. Or, you can use the`wpmem_export_fields` filter
   hook which will contain an array of the fields to be exported (so also unsetting
   existing values or returning an entirely new array of field meta keys).
 * `wpmem_export_fields` does not seem to be included in the current documentation
   and the deprecated parameters in `wpmem_export_args` are not reflected there,
   either, but I will get those updated. However, all of what I noted above is included
   in inline documentation in `class-wp-members-user-export.php`.

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

The topic ‘Exclude fields on users export’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/exclude-fields-on-users-export/#post-16714067)
 * Status: not resolved