Support

Save the set of field

Our Support Desk is where our clients and community come together to find solutions.

Answered
0
0

Hi,
above all thank you for this great plugin.
I wish save the set of fields to use for future exports, is it possible?
Thank you.
Luca

  • Ray
    Hey - You're the second person to request this feature - I can understand the need, but I'm not sure when I would have time to add this - it's not core functionality, but it is a nice add-on... Q
  • zen
    I really appreciate it. I just found the other request on the official wordpress support site. In the meantime, if I the hack with Jquery is not so complicated, please, can I ask more details to make it, like which files and and lines of code I need to modify. Thank you.
  • bsteinlo
    any luck with this? I have many custom user meta_data fields and would love to save the selections so I don't have to select them everytime. Zen-what did you end up doing?
  • zen
    I end up doing the zen practice... waiting with patience :)
  • You must to post comments
Best Answer
0
0

This feature has now been added to the export use data plugin.

  • You must to post comments
1
0

The solution would be php – not jQuery – and you would need to save the selected fields to an option in the database ( ideally if the user had checked an option asking to save the fields ) – then when you reload the export page, check for the saved option and pre-select the fields based on the data.

UPDATE:

The edits required to create this functionality would be best made to the main plugin, trying to achieve this via via filters and jQuery would be too long-winded.

Adding an option to save the settings would be simple enough – you would simply need to create an array of each group of fields ( usermeta, buddypress, etc.. ) and save those using update_option before the export spits out a file ( before line 354 ).

Applying the saved data will not be too complex either – just load it up ( still broken into sections ) and for each multiselect check if there is something saved and see if a matched field is found – if yes, select it.

In practise it’s about 4 hours work and I don’t have time in my schedule at the moment to fit that in.. perhaps in June..

Q

  • bsteinlo
    makes sense, but not sure how I would go about doing this. Do you mean hooking into the plugin to create an option to save the selected fields? Any recommendations?
  • Ray
    I've started on this, but my workload is high again.. sorry :(
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.

Why not Search Our Work or Get in Touch