02/13/2015 at 9:47 am
#319302
Keymaster
@ David
Yes, there are a couple actions in CSV Upload that you can hook into to save the custom fields meta data. They are cncsv_map_import_fields
and cncsv_import_fields
.
Here are links to a third party extension utilizing custom fields and using those hooks to be able to import from a CSV file.
The hooks are added here:
- https://github.com/jeremyBass/connections-levels/blob/master/connections-levels/includes/class-connections-levels.php#L22
- https://github.com/jeremyBass/connections-levels/blob/master/connections-levels/includes/class-connections-levels.php#L23
The callback functions are here:
- https://github.com/jeremyBass/connections-levels/blob/master/connections-levels/includes/class-connections-levels.php#L56
- https://github.com/jeremyBass/connections-levels/blob/master/connections-levels/includes/class-connections-levels.php#L60
As you’ll see there’s not too much to it.
Hope that helps! Let me know.