• Resolved Manish

    (@nims)


    I selected only first name, last name and email to be exported for a date range but it exports ID, user url, user login, user registered etc etc also. Why ?

    version – 2.2.6
    WP- 5.8.3

    • This topic was modified 3 years, 2 months ago by Manish.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author qstudio

    (@qlstudio)

    You would need to uncheck the option to include “Standard User Fields” – see the grab for an example:

    https://ibb.co/8MqyPrJ

    Thread Starter Manish

    (@nims)

    Thanks … but still ID field gets exported

    Thread Starter Manish

    (@nims)

    Also, there is no user_email field option in the selection field.

    Plugin Author qstudio

    (@qlstudio)

    user_email is a standard WP user field, not user meta data – same for ID, but it’s also possible that a plugin has added user_meta fields with the same name – you would need to give clearer examples of your exported data.

    Thread Starter Manish

    (@nims)

    As mentioned in the first post, I need only following fields
    First Name, Last Name, Email and one custom meta field.

    How can this be done.

    Plugin Author qstudio

    (@qlstudio)

    Export more data than you require and then filter this, for example using a Spreadsheet tool like Google – there is no granular option for the standard user meta fields.

    Thread Starter Manish

    (@nims)

    can’t u provide option to filter which standard fields to export please

    Plugin Author qstudio

    (@qlstudio)

    We only plan to maintain this plugin, no new features, as there are already many more complex exporting plugins which offer more filters and features – perhaps you should try other plugins to see if there is one that provides the features you require.

    Thread Starter Manish

    (@nims)

    Would you be kind enough to provide me the code so that I can tweak it a bit to only download email from the standard WP fields please.
    I know little bit coding only enough to manage basic stuff.
    So, I understand it would be a one line code only to filter the output.

    Thread Starter Manish

    (@nims)

    Actually it was simple.
    In get.php I made some edits and it worked.

        /**
        * Data to exclude from export
        */
        public static function exclude_fields(){
    
            $exclude_fields = array (
                    'user_pass'
                ,   'q_eud_exports'
                    ,   'user_url'
                    ,   'user_registered'
                    ,   'user_status'
                    ,   'display_name'
            );

    Also

       /**
        * Get the array of standard WP_User fields to return
        */
        public static function user_fields(){
    
            // standard wp_users fields ##
            if ( isset( $_POST['user_fields'] ) && '1' == $_POST['user_fields'] ) {
    
                // exportable user data ##
                $user_fields = array(
                        'ID'
                    ,   'user_email'
                );
    
            } else {
    
                // just return the user ID
                $user_fields = array(
    				'ID'
                );
    Plugin Author qstudio

    (@qlstudio)

    Those methods provide filters to change the default values.

    the value returned from exclude_fields() can be filtered via ‘q/eud/export/exclude_fields’

    the value returned from user_fields() can be filtered via ‘q/eud/export/user_fields’

    Then you would not need to make changes to the plugin itself and you could update it in the future without losing changes.

    You can read about all the available filters here: https://qstudio.us/releases/export-user-data-wordpress-plugin/#/scroll/codex

    • This reply was modified 3 years, 2 months ago by qstudio.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Downloads other columns too’ is closed to new replies.