# Jen Home Contact Fields and Exports WordPress/Houzez customization for **staging.jenhome.net** and **www.jenhome.net**. Author: **Josh Stevens Sr** · Website: [hostLabs](https://hostlabs.pro/) The installed plugin directory remains `jenhome-contact-exports`; the Gitea repository is named `jenhomeforms`. ## Behavior Contact forms collect First Name, optional Middle Name, Last Name and the visitor's answer to “How did you hear about us?”. The existing friend-name question is identified separately from a property address. Original forms, CRM persistence, notifications and existing security checks remain in place. New inquiries are assigned to WordPress user ID 7, with the linked Houzez lead owner updated in the same transaction. The update applies only when the new inquiry is the lead's sole inquiry; ambiguous relationships keep their native ownership and are logged. Existing records are never reassigned automatically. Inquiries CSV columns, in order: 1. Submission Date 2. First Name 3. Middle Name 4. Last Name 5. Referral Source 6. Referrer Name 7. Mobile 8. Email Submission dates use America/New_York with an explicit UTC offset. Email is the last column in both exports; phone fields come before it. Leads exports omit Source Link and retain their other existing fields. CRM views still show inquiry/property details even though the shorter Inquiries CSV omits them. Historical records are not backfilled or split; relationships use IDs, never email matching. The CRM export buttons submit the protected endpoints as normal browser downloads, so the CSV is not dependent on an asynchronous JavaScript Blob download. The plugin creates a prefixed `jenhome_contact_fields` extension table for middle names and exact submission provenance. Native Houzez tables and vendor files are not modified. Keep this table when rolling back or deactivating the plugin. ## Releases and WordPress updates The owner-created repository is public. WordPress needs no repository credential. The `Update URI` points to this repository, while the plugin website remains hostLabs. An active staging installation checks the latest published stable `vMAJOR.MINOR.PATCH` Gitea release through WordPress's update system. Every release must include: - `jenhome-contact-exports-VERSION.zip` - `jenhome-contact-exports-VERSION.zip.sha256` Only the four runtime files belong in the ZIP, under `jenhome-contact-exports/`. The build script produces that layout. The updater checks the checksum, exact file list, ZIP version and same-host HTTPS download redirects. Drafts, prereleases, incomplete releases and unverified packages are ignored or rejected. A failed check leaves the installed plugin in place. Metadata is cached for one hour; opening WordPress Dashboard → Updates clears this plugin's metadata cache. WordPress can install through **Update now** or its native **Enable auto-updates** setting. Automatic updates run on WordPress's cron schedule, not on every Git push. The plugin must remain active for its updater to run. ## Publishing Gitea Actions must have an online Docker-capable runner labeled `ubuntu-latest`. The workflow uses the official PHP 8.4 container and the job's ephemeral repository token. It never needs the WordPress SSH key or a permanent Gitea token. The repository runner is `jenhomeforms-local`, running act_runner 0.6.1 in a local Docker container named `jenhomeforms-runner`. It handles this repository only, one job at a time, with a 30-minute job timeout. Jobs have no home-directory bind mounts, Docker socket, or privileged mode. Runner configuration and registration live outside this repository in `~/.local/share/jenhomeforms-runner/`. The runner container restarts with Docker. Builds wait while the computer is asleep or offline; already-published WordPress releases remain available. Pause it with `docker stop jenhomeforms-runner` and resume with `docker start jenhomeforms-runner`. Treat its protected `data/.runner` file as a credential; never commit or share it. Remove its registration through this repository's Settings → Actions → Runners if retiring the computer. 1. Edit code and `CHANGELOG.md`; update both the plugin header Version and `Jenhome_Contact_Exports::VERSION`. 2. Commit and push to `main`. Each push runs PHP lint, the standalone updater and CSV tests, and builds the ZIP. WordPress checks the latest published stable Gitea release, so a pushed commit is available to the updater after it is validated on staging and published with its matching version tag. 3. After automated checks pass, create and push a matching stable tag: `git tag v1.2.3` then `git push origin v1.2.3`. The tag workflow publishes the verified ZIP and checksum for WordPress's updater. 4. The tag workflow repeats checks, builds the package, uploads both assets to a draft, and publishes the release only after uploads succeed. Deploy and verify updates on the published production site. Do not use staging for release validation or updates. Published versions are not overwritten. If a publishing job stops with a partial draft, review that draft and its assets before retrying, or publish a new version. Do not use Gitea's automatically generated source archive as the WordPress ZIP. Local checks (PHP 8.1+ with ZIP support, Python 3): ```sh php tests/unit.php python3 scripts/build-release.py v1.3.0 ``` ## Scope and rollback The plugin runs only when the home URL and WordPress directory match one of the two approved installations: `staging.jenhome.net` in its staging directory or `www.jenhome.net` in `httpdocs`. It also requires user ID 7 to exist as an administrator. Other hosts and copied installations fail closed. Back up the current plugin directory before the first updater installation. Deactivate this plugin to return to native behavior, or reinstall the previous verified plugin ZIP. Preserve the extension table and all contact records. The repository contains no credentials, contact records, database dumps or vendor source. Server integration tests use separate private synthetic fixtures with email/webhook suppression and transaction rollback.