Opened 7 years ago
Last modified 6 years ago
#41972 new enhancement
Add Import/Export functionality to the Customizer
Reported by: | anonymized_11892634 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.8.2 |
Component: | Customize | Keywords: | |
Focuses: | ui | Cc: |
Description
As a theme author, a big part of our documentation and guidance is instructing people how to replicate different theme previews. Fr complex Customizer settings, it would be great to be able to provide a user with a file which could be uploaded to the site. Much like uploading an xml file to import the post/page content.
I'm aware of plugins such as https://wordpress.org/plugins/customizer-export-import. However I think it would be a great enhancement to add import/export functionality to core, removing the reliance on a plugin and the extra burden this adds for beginner level users.
This could also help alleviate issues raised in #27177.
The import/export options could be a further development of the UI mentioned in #39896.
Change History (2)
#2
@
6 years ago
@westonruter The complexity of importing may be just a result of using the post export for exporting changesets.
Since the customizer can turn a changeset into a rendered page for previewing on the source site, it must first resolve all the references. Exporting at that point (from the customizer, not the WP exporter) should provide enough information for the subsequent import.
There may be caveats, like requiring the same theme(s) and plugins to be present/active on the target site as on the source site, but assuming all the settings are fully included in the export, not referenced, importing should work OK.
I think this enhancement can be a major leap forward once the customizer is fully adopted by plugin developers as a way to save/edit plugin settings. Taking new developments and respective settings live, while not changing content, can then be a far easier matter than it is today.
cf. my comment on #39896: