Assign Jen Home inquiries to designated admin
All checks were successful
Test and publish WordPress plugin / release (push) Successful in 23s

This commit is contained in:
josh
2026-11-02 11:09:32 -05:00
parent 703e5a8692
commit f63e052ccd
5 changed files with 86 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
# Jen Home Contact Fields and Exports
WordPress/Houzez customization for **staging.jenhome.net**.
WordPress/Houzez customization for **staging.jenhome.net** and **www.jenhome.net**.
Author: **Josh Stevens Sr** · Website: [hostLabs](https://hostlabs.pro/)
@@ -14,6 +14,11 @@ 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
@@ -93,14 +98,15 @@ Local checks (PHP 8.1+ with ZIP support, Python 3):
```sh
php tests/unit.php
python3 scripts/build-release.py v1.2.2
python3 scripts/build-release.py v1.3.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.
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