Custom XML Uploader
A plugin to upload a WordPress XML file and remove the content of pages while keeping other elements intact, including the page hierarchy.
by Breon Williams · github.com/breonwilliams/custom_xml_uploader
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/breonwilliams/custom_xml_uploader/archive/refs/heads/master.zipReadme
Custom XML Uploader
Custom XML Uploader is a WordPress plugin that allows you to upload a WordPress XML file and remove the content of pages while keeping other elements intact, including the page hierarchy.
Description
This plugin provides a simple interface in the WordPress admin area to upload an XML file. It processes the XML file to clear the content of all pages while retaining their structure, metadata, and parent-child relationships. The modified XML file can then be downloaded for use in importing to another WordPress site.
Features
- Upload a WordPress XML file.
- Remove content from all pages.
- Retain page structure, metadata, and parent-child relationships.
- Download the modified XML file.
Installation
- Download the plugin files and create a folder named
custom-xml-uploaderin thewp-content/pluginsdirectory. - Upload the plugin files to the
custom-xml-uploaderfolder. - Compress the
custom-xml-uploaderfolder into a.zipfile. - Go to the WordPress admin area and navigate to
Plugins>Add New. - Click on
Upload Pluginand select the.zipfile you created. - Click
Install Nowand thenActivate.
Usage
- After activation, a new menu item called
XML Uploadwill appear in the WordPress admin menu. - Click on
XML Uploadto access the upload form. - Use the form to upload your WordPress XML file.
- The plugin will process the file and remove the content from all pages while retaining other elements.
- After processing, a download link for the modified XML file will be provided.
Changelog
1.1
- Ensured that page hierarchy is maintained in the modified XML file.
1.0
- Initial release.
Author
Breon Williams
https://breonwilliams.com
License
This plugin is licensed under the GPLv2 or later.