Groups Import Export – save user meta keys

Posted in

Hi there, we purchased this plugin a few years ago.

We would like to be able to save the user meta keys to make it easier to generate custom exports quickly. As it is every time our client wants to export they need to delete hundreds on meta keys in the select field. Is this possible? Happy to custom code it if you have any suggestions on the best place to start.

Found it in user-export.php line 145


// $usermeta_keys = $wpdb->get_results( "SELECT DISTINCT meta_key FROM $wpdb->usermeta" );
// $keys = array();
// foreach( $usermeta_keys as $key ) {
// $keys[] = $key->meta_key;
// }
// sort( $keys );
$keys=array("first_name","last_name","nickname","billing_email","billing_address_1","billing_address_2","billing_city","billing_company","billing_country","billing_fax","billing_first_name","billing_last_name","billing_new-field","billing_phone","billing_postcode","billing_state","shipping_address_1","shipping_address_2","shipping_city","shipping_company","shipping_country","shipping_first_name","shipping_last_name","shipping_method","shipping_postcode","shipping_state");

Also we are running Version 1.2.4 but I have no way to check if that’s the latest version.

Thanks!
Lawrence

2 Responses to Groups Import Export – save user meta keys

  1. antonio May 19, 2017 at 9:51 am #

    Hi Lawrence,
    Yes, this is the last version. If you install the Itthinx Updates plugin, you will be noticed when a new version exists.
    Really this option doesn’t exists, but it sounds interesting. We will review it for the future.
    Kind Regards,
    Antonio B.

  2. Lawrence May 19, 2017 at 3:03 pm #

    I’m going to look into getting buddypress xprofile data too.