Timeline for How to Create Export/Import Functionality for Plugin
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 17, 2021 at 9:46 | comment | added | Evgeny Bobkin | First Link in this answer post is outdated! | |
Sep 13, 2016 at 13:50 | review | Suggested edits | |||
Sep 13, 2016 at 14:30 | |||||
Aug 28, 2012 at 9:15 | comment | added | urok93 | Ok, I'll look into it based on the info you gave me, thanks! | |
Aug 27, 2012 at 21:06 | comment | added | marfarma | Not really. Json is a protocol for converting program data into text. So is XML, which is used by WP's built-in import / export functionality. Php supports 'serialize' which also does the same thing. The real trick is to get the data you read and converted from yaml or XML or CSV or whatever format, back into WP as a post -- which requires setting up a a wp_insert_post() call for each one -- including adding all the related post meta, etc. If you don't use the standard XML import, you'll have to custom code your import and export process. | |
Aug 27, 2012 at 20:38 | comment | added | urok93 | Would saving to Json have any added benefit? | |
Aug 27, 2012 at 20:37 | vote | accept | urok93 | ||
Aug 27, 2012 at 20:09 | history | answered | marfarma | CC BY-SA 3.0 |