Export/Import WordPress configuration file
The built WP import/export goes a long way, but falls short on a few major "core" areas. Here are my humble requests for the builtin import/export tool:
Although you can get to the DB and file level for this, many times the old site is corrupted, hacked or going to be completely redesigned.
The import/export is intended for posts/pages only (and actually as menus are a CPT, they should be getting brought over as well).
Settings are complicated, as many are per-plugin or per-theme, and WP can't know what it doesn't know. The only workaround I could think of is if WP gave hooks that they could latch into so it would be detected on export, but even then
1) You'd have to have the plugin/theme on the new site
2) The plugin/theme would have to actually use the hooks (which we can't assure)
Speaking of links... Please check out http://core.trac.wordpress.org/ticket/21307 - We're talking about removing it and replacing with a plugin.
This thread is marked with "working on it" but I couldn't find a ticket for it.
A hook system could make the export of theme/plugin settings opt-in. On export, look for setttings marked for export, and on import, check if plugin/theme is installed. the signature for it might be something like
exportable_option( 'my_option', 'my_plugin' );
I don't think there is a ticket, but it does get talked about.
From a plugin/theme standpoint, you could use meta_data on a private CPT to store your options instead of options. Then the importer would work. Additionally, you could do some sort of versioning as a bonus. Seems like a hassle tho.
RSS feed for this topic
You must log in to post.