• Resolved krsh333

    (@krsh333)


    Thank you for maintaining this helpful plugin.

    I would like to import and export user-data including “Biographical Info” and “Profile Picture”. Any way?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @krsh333,

    Could you please mention how you have included the Biographical Info field to the user. If you are using any third-party plugin or custom method to include it then it will be stored as metadata. Importing/Exporting of user metadata is supported only in the premium version of the plugin. You may have a look at the premium version of the plugin.

    Regarding “Profile Picture”, by default WordPress does not support import/upload of the user profile picture. Could you please mention whether you are able to manually upload prfoile picture to the users or not.

    Thread Starter krsh333

    (@krsh333)

    @webtoffee
    Thank you for your reply.

    Sorry, I mean not “Biographical Info” but “user_description”.
    Can the plugin import&export “user_description”?

    Also, I will upload profile pictures manually. thanks.

    I also would like to know if user_description is exportable or not, it is pretty imperative for a site I am transitioning that has 300+ users.

    • This reply was modified 5 years, 1 month ago by wadehammes.
    Plugin Author WebToffee

    (@webtoffee)

    Hi @krsh333 @wadehammes,

    This version of the plugin does not support import/export of user description data. You may have a look at the premium version of the plugin using which you can import/export the user_description data.

    @krsh333 I was able to update the plugin myself to achieve exporting the description. If you feel comfortable touching PHP code, here is how you can export and import description:

    in includes/exporter/data/data-wf-post-columns.php, add the following to the end of the $columns array before the closing );:

    'user_description' => 'user_description',
    (add a comma after ‘roles’)

    in includes/importer/data/data-wf-reserved-fields-pair.php add the following to the end of the $columns array before the closing );:

    'user_description' => 'user_description | user_description',
    (add a comma after ‘roles’)

    in includes/importer/class-wf-csv-parser.php, add the following to the end of the $this->user_base_fields array before the closing );:

    'user_description' => 'user_description',
    (add a comma after ‘roles’)

    in includes/importer/class-wf-customerimpexpcsv-customer-import.php, add the following after line 618:

    $user_description = (!empty($data['user_details']['user_description'])) ? $data['user_details']['user_description'] : '';

    and in the same file, in the wp_update_user array on line 625, add the following to the end of the array:

    'description' => $user_description,
    (add a comma after ‘user_status’)

    Very simple update to include a field that should be supported in the basic version of this plugin. Hopefully they will add it in a future version, but I was on a tight deadline and needed it now.

    Thread Starter krsh333

    (@krsh333)

    @webtoffee
    Thank you. I understood the normal version doesn’t support “user_description”.

    @wadehammes
    Thank you so much for your help and clear explanation! I will try.

    Thread Starter krsh333

    (@krsh333)

    @wadehammes
    I was also able to deal with user_description by your advice.
    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Biographical Info’ is closed to new replies.