uichemy_publish_site
Put a project ONLINE as a real WordPress site at https://.uichemysites.com, hosted by UiChemy: the pages are exported and imported into WordPress with the UiChemy plugin. This is PUBLIC: anyone with the link can see it, so only call it when the user asks to publish, go live, or put the site online, and tell them the address. One site per project; calling it again for a published project UPDATES that same site (same address, pages replaced with the current design). A new site is a Temporary site: online for 24 hours, then offline until the user turns it on again or makes it permanent (Sandbox) in UiChemy > Published Sites. Each plan allows a number of Temporary and Sandbox sites; unpublishing or going offline frees one. Only generated pages are published. PAGE BUILDER: before a FIRST publish, ask the user whether the WordPress pages should be built with Elementor (recommended) or Gutenberg (the WordPress block editor), unless they already said, and pass it as builder. If they don't know or say "you choose", use Elementor without asking again. A site keeps that builder: on an update leave builder out; to switch builder the site has to be unpublished first, unless its first publish failed (then a retry may pass the other builder). Publishing takes a few minutes: this returns at once with the address; then call uichemy_publish_status (it waits for the result) until it says live or FAILED, and only then tell the user the site is live or that it failed. WordPress only: for an Astro site use uichemy_export_astro (download) or uichemy_deploy_to_cloudflare (the user's own Cloudflare). To open the site's WordPress admin afterwards, use uichemy_open_site_admin (the user has no password for it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Page names to publish. Omit for every generated page. | |
| address | No | Only for a FIRST publish: the subdomain, e.g. "bloom-bakery" for bloom-bakery.uichemysites.com. Lowercase letters, numbers and hyphens. Omit to derive it from the project name. Ignored on an update. | |
| builder | No | Only for a FIRST publish: the page builder the user chose, elementor or gutenberg. Ask them first. Omitted on a first publish = elementor. Leave out on an update (the site keeps its builder). | |
| projectId | Yes |