WordPress.org

Ready to get started?Download WordPress

Ideas

export/import hook

  1. Andrei
    Member

    in a export file from wordpress we have just post, pages, categories, etc the content that is generated by wordpress. a hook for adding custom data in export file would be great. something like install/uninstall hook for plugins, so you could do this

    register_export_hook(__FILE__, 'the_plugin_export_fn');
    function the_plugin_export_fn() {
    return array('options' => array('foo' => 'bar'), 'data' => 'other data');
    }

    register_import_hook(__FILE__, 'the_plugin_import_fn');
    function the_plugin_import_fn($data) {
    //do something with $data['options']
    }

    Posted: 4 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    3 Votes
  • Status

    Duplicate of another idea