edit: I've re-written this because it is unclear, apologies it was written rushed on a Friday afternoon.
Wordpress has import/export functionality for posts within wordpress, I am a theme developer trying to export demo content with my theme, I would like users to be able to click a button within my plugin and then that will load in all the demo content.
The problem is Wordpress's native functionality only handles posts and media images, it does not handle things like site options (I would like to set the front page post) and widgets + their locations, my question is how can I write something that would import my widget settings and some site options