30. Setup guide
It takes a freshly installed site to operational. Screen: BuilderOS → ?tab=setup, linked from Help → Getting started (the panel, with “See the full guide”). Only administrators see it. It has two views: the first run (4 steps, default) and the full guide (&view=all, “A single path” below). Builder_OS_Setup::render() picks one or the other.
First run (4 steps)
Partial admin/partials/builder-os-firstrun-display.php, with admin/js/builder-os-firstrun.js (image picker) and no JavaScript dependency: they are links and forms with a nonce that submit to admin-post.php?action=bos_setup (field do) and return to the screen. Steps ?tab=setup&paso=1..4 (Builder_OS_Setup::fast_url()); without paso it opens the saved one (fast_step), or 4 if fast_done. Reaching 4, even by skipping, saves fast_done.
| Step | Title | What it asks or does | Action (do) |
|---|---|---|---|
| 1 | How to start | Cards: With your AI (shows the steps ai_connect and ai_package), From scratch and Switch from Elementor (only if Builder_OS_Migrate_Elementor::available()) | fast_route (ai, nocode, elementor) |
| 2 | The essentials | Name (required), description, logo, primary and accent colors, optional Typography (typography: Builder_OS_Site_Identity::font_pairs(), moderna Poppins/Inter, editorial Playfair Display/Source Sans 3, clara Montserrat/Open Sans; save_typography() saves it in the Global Design and empty touches nothing), phone, email and WhatsApp | fast_essentials |
| 3 | The panel | Just me (simple mode) or Developer or agency (full) | fast_audience (solo or pro) |
| 4 | Done | View the site, Edit the home page, Go to Home and See the full guide; live preview of the front page (iframe with sandbox, decorative) and 3 Next cards (Measure your WhatsApp clicks → Tracking, Turn on automatic backups → tab=backup, Connect Google → Tracking → Connections) | — |
- Skippable and reversible. Each step carries Skip (link to the next) and Back; the steps already visited in the progress bar are links. “From scratch” creates the “Home” front page if
check_home()is pending.fast_routesavesfast_routeand, for the full guide,route(aiornocode;elementorcounts asnocode). - Status in the option
builder_os_setup:fast_step,fast_done,fast_route,checklist_hidden(legacy from Home’s “Round out your site” card, which 4.15.2 replaced with “Getting started”; no longer read) (besidesnew,auto,route,skipped,dismissed,doneandtotal). - Automatic opening.
maybe_open()redirects once to?tab=setup(the first run) on a new installation, only for an administrator, with the license active and without interrupting requests that don’t paint a screen. - Top bar. During the first run (
Builder_OS_Setup::is_firstrun())builder-os-admin-header.phpdoes not paint the top bar tools. - Colors untouched. If the color submitted is the sample one (
SAMPLE_PRIMARY,SAMPLE_ACCENT) and none was saved, it is not saved.
In this chapter
- Getting startedIt replaces the Home list. includes/modules/class-builder-os-setup-guide.php (Builder_OS_Setup_Guide), with admin/css/builder-os-setup-guide.css and…
- Site identityincludes/modules/class-builder-os-site-identity.php (Builder_OS_Site_Identity). Used by step 2 of the first run and Settings → Site identity…
Simple mode
includes/modules/class-builder-os-simple-mode.php (Builder_OS_Simple_Mode, desktop only; loaded by class-builder-os-setup.php). It hides the advanced tools from the navigation and disables nothing: their URLs keep working.
- Site setting: option
builder_os_simple_mode('1'active,'0'or absent = full). Per-user preference: metabos_simple_mode(onoroff; absent = the site’s).on()applies the user’s and, if there is none, the site’s. - Where it is changed: Settings → Appearance, “Simple mode” card (administrators;
scope=site, and it also clears the saver’s preference); top bar account menu, “Simple mode” option with an Active or Inactive chip (scope=user,manage_optionsonly); and step 3 of the first run. All go throughadmin-post.php?action=bos_simple_mode(noncebos_simple_mode,scopeandvalue). - What it hides (constant
HIDDEN, key to URL matches):ab(?tab=ab),servertrack(Tracking’sattribution,rules,destinations,conversions,whatsapp,reconcileandservertrackviews),code,packages,mcp(Settings → AI Integration),wizards,pseo(SEO,datosview),crawl(SEO,rastreoview) anddocs_dev(Documentation,desarrolladoresview). It is filtered in the tabs, the rail and the top bar, the mobile sheet, “Create”, the Home cards, Ctrl+K and the view lists (CSSbody.bos-simple-mode). Documentation and Help open the users view. - Extend: filter
builder_os_simple_mode_hidden(same format asHIDDEN). A new advanced tool must be added there.