Importer as plugin
|Reported by:||Nazgul||Owned by:||westi|
I'm developing a plugin that can be used to show geocaches (and their logs) from within wordpress, by storing them as pages (and comments) and doing some magic while displaying them.
I've also included an importer which you can use to import them from so-called GPX files into Wordpress.
At the moment, they're 2 seperate files, because plugins have to be in wp-content/plugins and importers have to be in wp-admin/importers to work.
Because all user content should be in wp-content and for ease of install, I'd like to combine those 2 file into 1, the plugin file.
The attached patch introduces a new filter which can be used to modify the location where the system searches for it's importer. It also changes the include to a require_once to make sure that it isn't loaded twice (once as importer, once as plugin for example)
I've also attached a simple sample plugin which contains an importer plugin that uses this functionality.
Change History (12)
- Owner changed from anonymous to westi
- Status changed from new to assigned
- Keywords needs-patch added; has-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened