analyze_ingestion_file
Parse WP export files (JSON/CSV/XML) with PHP serialization support
Overview
The first step in any WordPress cloning project. This tool reads your WordPress or WooCommerce export file and understands its structure — every field, every custom attribute, every serialized PHP blob. It tells you exactly what data you're working with so nothing gets lost in translation.
How It Works
- Upload or point to a WordPress export file in JSON, CSV, or XML format.
- The tool detects the file type and parses it, handling WordPress-specific quirks like PHP-serialized meta fields.
- It analyzes up to 50 rows to detect all fields, custom attributes, and data patterns.
- Returns a structured analysis with field names, sample data, custom attributes, and cloning recommendations.
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath |
string |
required | Path to the uploaded WordPress export file |
fileType |
json | xml | csv |
required | Format of the export file |
maxRows |
number |
optional | Maximum rows to analyze (default: 50) |
What You Get Back
- Total record count
- List of all detected fields (columns/keys)
- Custom attributes found in meta data
- Sample data rows for verification
- Recommendations for schema design
Example Use Case
You have a WooCommerce product export CSV with 2,000 products. Before building your new database schema, run this tool to discover all the custom fields (like _sale_price, _stock_status, custom taxonomies) so your new schema captures everything.
Tips
Run this before generate_schema_proposal — it provides the input that tool needs.
PHP-serialized fields (common in WooCommerce meta) are automatically detected and unpacked.
Works with WP All Export, WooCommerce CSV exports, and WordPress WXR XML exports.
