Appearance
Developer Mode
The Migrator includes a set of tools — primarily reset and re-run paths — that are too destructive to leave exposed on production. Developer Mode is the single switch that unlocks them.
It exists for one reason: rehearsing migrations safely. On staging, you want to import, inspect, reset, tweak the source, and import again, sometimes a dozen times before the production cutover. On production, you want every reset path firmly locked.
Activating Developer Mode
Add the following line to your wp-config.php file, above the /* That's all, stop editing! */ comment:
php
define('FLUENT_CART_DEV_MODE', true);Save the file. The change takes effect immediately. No plugin deactivation or cache flush is required.
To turn Developer Mode off, remove the line or set it to false.
Never enable Developer Mode on production
Developer Mode exposes destructive operations. Only enable it on staging, local, or otherwise isolated environments. On a live store it risks accidental data loss.
Why a constant, not a setting
Defining a constant in wp-config.php is auditable, slow to flip by accident, and impossible to toggle from the WordPress admin. A misclicked button in the dashboard could wipe a production store; editing wp-config.php requires SSH or filesystem access plus an explicit code change.
This is the same reason WordPress core gates WP_DEBUG, DISABLE_WP_CRON, and other risk-bearing flags behind constants rather than settings pages.
What Developer Mode unlocks
With FLUENT_CART_DEV_MODE set to true, the following capabilities become available:
| Path | How to access |
|---|---|
--reset flag on the main migration command | wp fluent_cart_migrator migrate_from_edd --reset |
| Standalone reset command | wp fluent_cart_migrator reset |
| Schema-refresh reset | wp fluent_cart_migrator migrate_fresh |
| Reset button in the admin wizard | Visible at the completion screen |
Without Developer Mode, every one of those paths returns blocked. The admin wizard checks the same flag and hides the reset button entirely. This is the behavior you want on production.
For the actual reset workflow — what reset destroys, when to use reset vs migrate_fresh, the staging rehearsal recipe, and confirmation prompts — see Troubleshooting → Resetting a migration.
Related
- Troubleshooting — full reset workflow, failed payment logs, common errors
- WP-CLI Reference — full command surface
