I’m exporting widgets to save the fields in a file. Then I’m including this file with a theme along with an xml-file of exported posts, so that users may import all the demo content in one click, not only widgets.
Thanks for investigating, John. Yes, it’s the plugin I’m using for export.
I’m using this one for import though: https://ru.wordpress.org/plugins/one-click-demo-import/. It’s also well maintained by the developer.
I’m not sure what filters I would exactly need for including ACF fields in the export files and in the import process.
Would highly appreciate any help and directions. Thanks a lot!
Unfortunately, I’m a poor coder to contribute. Would be great if you could look into it.
Thanks a lot, John!
Thanks John for such a detailed response.
There’s widget_update_callback
hook, check here.
I think it can be the hook you need. See an article here regarding cache clearing upon widget save.
Basicaly you could get defaul widget settings, append the ones from ACF and save it back to the default serialized array.
Is the bug still there in V5 Pro? 'title' => __('Theme Options','theme-name')
doesn’t seem to work.