30. Setup guide

For developersVersion 1.0.0Last updated:

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.

StepTitleWhat it asks or doesAction (do)
1How to startCards: 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)
2The essentialsName (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 WhatsAppfast_essentials
3The panelJust me (simple mode) or Developer or agency (full)fast_audience (solo or pro)
4DoneView 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_route saves fast_route and, for the full guide, route (ai or nocode; elementor counts as nocode).
  • 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) (besides new, auto, route, skipped, dismissed, done and total).
  • 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.php does 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

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: meta bos_simple_mode (on or off; 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_options only); and step 3 of the first run. All go through admin-post.php?action=bos_simple_mode (nonce bos_simple_mode, scope and value).
  • What it hides (constant HIDDEN, key to URL matches): ab (?tab=ab), servertrack (Tracking’s attribution, rules, destinations, conversions, whatsapp, reconcile and servertrack views), code, packages, mcp (Settings → AI Integration), wizards, pseo (SEO, datos view), crawl (SEO, rastreo view) and docs_dev (Documentation, desarrolladores view). 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 (CSS body.bos-simple-mode). Documentation and Help open the users view.
  • Extend: filter builder_os_simple_mode_hidden (same format as HIDDEN). A new advanced tool must be added there.