feat(onboarding): support TI_ONBOARDING_DEFAULT_SITE redirect#459
Merged
selul merged 1 commit intodevelopmentfrom Apr 23, 2026
Merged
feat(onboarding): support TI_ONBOARDING_DEFAULT_SITE redirect#459selul merged 1 commit intodevelopmentfrom
selul merged 1 commit intodevelopmentfrom
Conversation
When the TI_ONBOARDING_DEFAULT_SITE constant is defined, the post-activation redirect now lands on the preview/import screen for that site (admin.php?page=neve-onboarding&site=<slug>) instead of the default search/welcome screen. The onboarding store resolves the ?site=<slug> query param against the bootstrapped sites list (across all builders) and starts at step 3 with currentSite preset; if the slug is unknown the app falls back to the existing search screen. This lets distributions and embedded environments (e.g. WordPress Playground) deep-link a user straight to the import flow for a chosen starter site. Made-with: Cursor
Collaborator
Collaborator
|
🎉 This PR is included in version 1.2.27 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
Adds a new opt-in mechanism to deep-link the onboarding wizard straight to the preview/import screen for a specific starter site.
TI_ONBOARDING_DEFAULT_SITEis defined,Admin::activation_redirect()now sends users toadmin.php?page=neve-onboarding&site=<slug>instead of the welcome/search screen.?site=<slug>on boot, looks the slug up across all builders intiobDash.onboarding.sites.sites, and starts at step 3 (CustomizeSite/ preview + Import) withcurrentSitepreset.Use case: distributions and embedded environments (e.g. WordPress Playground demos) that want to drop a user directly into the import flow for a chosen site.
Test plan
?page=neve-onboarding&show=welcome(welcome step).define( 'TI_ONBOARDING_DEFAULT_SITE', 'web-design-agency' );inwp-config.php: re-activate the plugin and confirm the redirect goes to?page=neve-onboarding&site=web-design-agency, app boots on the preview screen with the site preselected and the Import panel visible.?page=neve-onboarding&site=does-not-existdirectly: app falls back to the search screen instead of breaking.