Static Export WP
Export your WordPress site as static HTML files. Crawls every page like a browser and saves a complete static copy with all referenced assets.
README
Static Export WP
Export your WordPress site as static HTML files. Crawls every page like a browser and saves a complete static copy with all referenced assets.
Features
- Full site crawl — discovers posts, pages, archives, taxonomies, author and date pages automatically
- Smart asset collection — only copies CSS, JS, images and fonts that are actually referenced
- URL rewriting — relative paths (works offline/from
file://) or custom base URL for deployment - Background processing — exports run via Action Scheduler or WP Cron without blocking
- WP-CLI support — run exports from the command line with progress bars
- React admin UI — modern dashboard with real-time progress tracking
- Export history — view past exports with status and statistics
Requirements
- PHP 8.1+
- WordPress 6.4+
Installation
# Clone the repo into your plugins directory
cd wp-content/plugins/
git clone https://github.com/open-wp-club/static-export-wp.git
cd static-export-wp
# Install dependencies
composer install
npm install
# Build the admin UI
npm run build
Activate the plugin in Plugins → Static Export, then open Static Export from the admin menu.
WP-CLI
# Full synchronous export with progress bar
wp static-export generate --synchronous
# Export with custom output and base URL
wp static-export generate --synchronous --output-dir=/tmp/export --url-mode=absolute --base-url=https://example.com
# Preview discoverable URLs
wp static-export list-urls
# Check export status
wp static-export status
# Cancel a running export
wp static-export cancel
# Delete exported files
wp static-export clean --yes
REST API
All endpoints require manage_options capability. Namespace: sewp/v1
| Method | Endpoint | Description |
|---|---|---|
| GET | /settings |
Get current settings |
| POST | /settings |
Update settings |
| POST | /export/start |
Start background export |
| POST | /export/cancel |
Cancel running export |
| GET | /export/status |
Get export progress |
| GET | /export/log |
Export history |
| POST | /export/clean |
Delete output files |
| GET | /export/discover-urls |
Preview URL list |
Development
# Watch mode for JS development
npm run start
# Run PHP unit tests
./vendor/bin/phpunit
# Check coding standards
composer phpcs
Releasing
Push a version tag to trigger the GitHub Actions workflow that builds a release ZIP:
git tag v1.0.0
git push origin v1.0.0
The workflow installs production dependencies, builds assets, stamps the version, and creates a GitHub Release with the plugin ZIP attached.
License
GPL-2.0-or-later
On this page
Details
- Last repository activity
- October 13, 2026
- Language
- PHP
- Stars
- 2
Compatibility
- WordPress minimum
- 6.4
- WordPress tested up to
- Not declared
- PHP minimum
- 8.3
Declared by the plugin in its source files. Missing information does not indicate compatibility.
WP-CLI
wp plugin install https://github.com/Open-WP-Club/static-export-wp/archive/refs/heads/main.zip --activatePlugin of the Month
November 2026
Rank Math Automation WPOptimize WooCommerce products for SEO using RankMath
Open-source supporters
These companies help keep our plugins free and maintained.
Meet our supporters →Sponsor us
Our software is free forever. Sponsorships help us maintain all our plugins and build new tools for the WordPress ecosystem.
Become a SponsorContact us about sponsoringExplore
Related Plugins
Google Scholar WP
A WordPress plugin that allows you to display your Google Scholar profile information on your website using a simple shortcode.
Local Pickup WooCommerce
A WooCommerce extension for zone-aware store pickup locations with individual prices. It is built specifically for the modern Cart and Checkout Blocks.
Bulk Order Editor
Bulk Order Editor for WooCommerce allows store managers to quickly modify multiple orders at once, directly from the WordPress admin panel.
