5.0 KiB
Jen Home Contact Fields and Exports
WordPress/Houzez customization for staging.jenhome.net.
Author: Josh Stevens Sr · Website: hostLabs
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.
Inquiries CSV columns, in order:
- Submission Date
- First Name
- Middle Name
- Last Name
- Referral Source
- Referrer Name
- Source Link
- Mobile
Submission dates use America/New_York with an explicit UTC offset. Leads exports retain their 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 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.zipjenhome-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.
- Edit code and
CHANGELOG.md; update both the plugin header Version andJenhome_Contact_Exports::VERSION. - Commit and push to
main. The workflow lints PHP, runs the standalone updater and CSV tests, and builds the ZIP. - After checks and staging validation pass, create and push a matching tag:
git tag v1.2.1thengit push origin v1.2.1. - The tag workflow repeats checks, builds the package, uploads both assets to a draft, and publishes the release only after uploads succeed.
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):
php tests/unit.php
python3 scripts/build-release.py v1.2.0
Scope and rollback
The plugin runs only when both the home URL and WordPress directory identify
staging.jenhome.net. Installing it on production does not enable its behavior or
updater. A production rollout requires a separately reviewed scope change.
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.