WordPress.org

Ready to get started?Download WordPress

Ideas

Export/Import WordPress configuration file

  1. basememara
    Member

    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:

    1. Settings
    3. Links
    4. Menu's

    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.

    Posted: 1 year ago #
  2. Ipstenu (Mika Epstein)
    Administrator

    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.

    Posted: 1 year ago #
  3. WraithKenny
    Member

    12345

    This thread is marked with "working on it" but I couldn't find a ticket for it.

    Posted: 1 year ago #
  4. WraithKenny
    Member

    12345

    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' );

    Posted: 1 year ago #
  5. Ipstenu (Mika Epstein)
    Administrator

    I don't think there is a ticket, but it does get talked about.

    Posted: 1 year ago #
  6. WraithKenny
    Member

    12345

    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.

    Posted: 1 year ago #
  7. +1

    Posted: 1 year ago #
  8. dpflying
    Member

    Nice idea, can one thing be included?

    - Import/Export all the plugin configurations as well.

    Is it possible? or is it already in your 7. and etc?

    Posted: 1 year ago #
  9. WraithKenny
    Member

    12345

    The importer was updated with a ton of new hooks recently.

    Posted: 1 year ago #
  10. guaka
    Member

    re worsh, the wordpress shell, there's now http://wp-cli.org/ and it's pretty awesome!

    Posted: 7 months ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    12345
    40 Votes
  • Status

    Good idea! We're working on it