how to show the tables of my plugin in the export tab of Wordpress?

by Karra   Last Updated May 15, 2019 15:08 PM

Is there any script so I can show the option to export all of my plugin's tables in this default wordpress tool?

enter image description here

Tags : plugins export


Answers 1


The Core export function only outputs data from the prefix_posts and prefix_postmeta tables, so it would take a lot of doing to extend it to export other tables entirely, especially since it converts everything to XML.

Instead of trying to modify this core function, it would be much simpler if your plugin's data could be saved in those tables by using custom post types instead of custom tables. As you can see in your screen shot the custom post type "Movies" automatically appears here. This would be more futureproof than extending core functionality.

WebElaine
WebElaine
May 15, 2019 14:53 PM

Related Questions


Updated June 01, 2017 14:08 PM

Updated April 29, 2018 17:08 PM

Updated January 29, 2019 03:08 AM

Updated May 08, 2019 20:08 PM

Updated June 30, 2015 14:03 PM