P2P Exporter/Importer
Demonstrates how the hooks in WordPress Exporter Redux and WordPress Importer Redux allow P2P information can be exported and imported.
Description
For this plugin to do anything at all, you will need to install/activate WordPress Exporter Redux and/or WordPress Importer Redux.
Note: This plugin is NOT an official part of P2P and any problems it may cause are solely my responsibility.
Install
- Install WordPress Exporter Redux.
- Install WordPress Importer Redux.
- Install Composer
- Install this plugin, either:
- directly from GitHub. (Download as a ZIP)
- via GitHub Updater.
- After that install the dependencies using composer in the plugin directory:
composer install
How do I use it?
To Export P2P information
- Activate WordPress Exporter Redux.
- Activate this plugin
- Head to Tools
- Select "Export (v2)"
- Follow the on-screen instructions.
To Import P2P information
- Activate WordPress Importer Redux.
- Activate this plugin
- Head to Tools » Import
- Select "WordPress (v2)"
- Follow the on-screen instructions.
Change Log
0.2
- Rewrite to use WP_XMLWriter
0.1.1
- Fixed bug in
P2P_Import::remap_xml_keys()
0.1
- Init commit
To Do's
-
P2P can create relationships from any object to any other object (e.g., from posts to users, from posts to posts, from users to terms, etc). At this time, we assume that ALL P2P extension markup in a WXR instance are from posts to posts, for two reasons:
- that is all is necessary to create a mirror of https://developer.wordpress.org/reference/;
- I'm not all that familiar with how P2P stores other kinds of relationships and think that we'd also have to export additional information (probably at the /rss/channel level) to be able to handle other kind of relationships.
How can I help?
Have a comment/suggestion about the hooks in WordPress Exporter Redux that this plugin demonstrations? Head on over to WordPress Exporter Redux: Issues and open an issue.
Have a comment/suggestion about the hooks in WordPress Importer Redux that this plugin demonstrations? Head on over to WordPress Importer Redux: Issues and open an issue.
Have a comment about this plugin, per se? I might not respond (after all, this is only a "demo")...but if it is something really serious, then go ahead and open an issue here.