Skip plugin onboarding wizards in WooCommerce test-store blueprints - #227
Merged
adamziel merged 2 commits intoJul 29, 2026
Merged
Conversation
Elementor, WPForms, and WP Mail SMTP hijack the first wp-admin visit with their onboarding wizards after activation. Mark the wizards as completed and delete the activation-redirect transients so the site is ready to use immediately after provisioning. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. Blueprint previews |
…-store-hello-elementor blueprints.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #226. Three of the bundled plugins (Elementor, WPForms, WP Mail SMTP) grab the first wp-admin visit after activation and drop you into their setup wizard. That's exactly what you don't want from a blueprint whose point is landing on a ready-to-use store, so this adds one last
runPHPstep to both blueprints that marks the wizards as already done.For Elementor that means setting
elementor_onboarded, for WPFormswpforms_setup_wizard_completed, and for WP Mail SMTPwp_mail_smtp_activation_prevent_redirect, plus deleting each plugin's activation-redirect transient. The step has to run after the activation step becauseWPFORMS_VERSIONonly exists once the plugin is active. Nothing is removed: the wizards are still reachable from each plugin's menu, they just stop auto-launching.This also adds the screenshots for both blueprints. The screenshot workflow doesn't run on fork PRs, so #226 merged without them and both stores show the "no screenshot" placeholder in the gallery.
Testing
@wp-playground/cli: a minimal blueprint that installs and activateswpforms-litethe same way these do renders "WPForms Setup Wizard" on the first/wp-admin/load. With the new step, the same request renders the normal dashboard.npm run validate:pr-blueprintspasses for both blueprints.🤖 Generated with Claude Code