Website integration · Engineering case study
WordPress Integration & Automation
Custom WordPress plugins, PHP and REST APIs connect a website, mobile apps and Google Workspace workflows, with centralized maintenance and compatibility for existing clients.
Part of the OCHC software ecosystem
- Type
- System integration case study
- Status
- Source-verified · migration pending
Connected systems
Three workflows. One connected ecosystem.
Routine content changes can reach the app without a new release. Video retains its existing read path, while submissions share a workbook. These three workflows explain the system responsibilities and implemented scope.
Linear · Dynamic content
Update contacts without an app release
Contact details are maintained in WordPress and retrieved by the app through the REST API.
Read the text version
- Contact information
- WordPress backend publishes enabled contact records through the contact REST API. The iOS / Android app retrieves those records, allowing routine updates without an app release.
Branching · Backward compatibility
One configuration, two integration paths
Both outputs use the same video configuration. The app still reads compatible HTML; the REST endpoint exists, with client migration left for a future update.
Read the text version
- Current video path
- Shared WordPress video configuration supplies shortcodes and compatible HTML. The current app extracts video information from that HTML.
- Prepared video path
- The same configuration feeds an implemented read-only REST endpoint. Moving the mobile client to that endpoint remains planned; the dashed connection represents this incomplete migration.
Multi-source · Shared processing
Different entry points, coordinated workflows
Website and app submissions use Google Apps Script; Google Forms writes directly to the same Google Sheets workbook. Saving records and sending notifications are separate operations. Eligible notifications use a configured and enabled scheduled workflow.
View the full technical architecture
Technical paths for submissions, storage & notifications
All entry points share one Google Sheets workbook. Google Apps Script saves HTTP submissions and arranges eligible notifications. Google Forms writes directly to the same workbook, then its installed form-submit trigger invokes the script handler. API writes do not fire that trigger.
Scheduled delivery requires deployed code, installed triggers, authorization and enabled notification settings.
Read the text version
- Website submissions
- Website HTML forms submit to the WordPress PHP REST relay, which validates and forwards requests to a server-configured Google Apps Script API. That API saves records to the same shared Google Sheets workbook used by Google Forms. WordPress does not keep a submission archive.
- Mobile submissions
- The iOS / Android app submits directly to its configured Google Apps Script API, which saves to the shared Google Sheets workbook. These requests do not pass through WordPress, and the app does not retrieve its submission endpoint from WordPress.
- Google Forms submissions
- Google Forms writes directly to the same linked Google Sheets workbook. Only a Google Forms submission invokes the installed spreadsheet form-submit trigger and the Google Apps Script form handler. HTTP API writes to that workbook do not invoke this trigger.
- One workbook, two script responsibilities
- The diagram contains a single shared Google Sheets workbook, not separate stores for API and Google Forms submissions. Google Apps Script saves HTTP submission records there and separately arranges notifications and eligible receipts after records are saved. Google Forms performs its own native write before invoking the script's event handler.
- Storage and notification delivery
- After eligible records are saved, API notification initialization or the form handler adds queued work. Queue state uses Sheets and Script Properties. A configured time-driven worker uses MailApp for delivery, subject to authorization and enablement. Prayer and Bible-question workflows support staff notices; personal prayer receipts require explicit opt-in and a valid email. Feedback sends no email, and the Google Forms path has no personal receipt opt-in.
These diagrams describe source-verified code paths. Production deployment and active service settings have not been verified.
Development evolution
From a content fix to an integration system
Three development phases, rather than formal plugin version numbers.
Phase 1 · Dynamic content API
Make routine content editable
- Problem
- Contact details were hardcoded in the app.
- Solution
- Backend-managed records and a contact REST API.
- Result
- Routine contact updates no longer need an app code change.
Phase 2 · Forms & automation
Connect the submission channels
- Problem
- Web, mobile and Google Forms had different entry paths.
- Solution
- Google Apps Script processing, Sheets records and notification workflows.
- Result
- Shared processing responsibilities with each entry path preserved.
Phase 3 · Maintainability
Improve content maintenance
- Problem
- Elementor editing failed; its root cause remains unconfirmed.
- Solution
- A workaround and backend-managed video configuration.
- Result
- HTML compatibility preserved; API client migration remains planned.
Technology & engineering
Built for change, with explicit boundaries
Technical choices support content maintenance, client compatibility and submission handling, with record storage kept separate from email delivery.
- WordPress
Custom plugins and admin fields keep contact and video configuration in the website.
- PHP
Validates website submissions, forwards HTTP requests and supplies compatible output.
- REST API
Provides structured read endpoints, including a prepared video path awaiting client migration.
- Google Apps Script
Handles HTTP submissions and Forms events through distinct paths, arranging eligible notification work.
- Google Sheets
One linked workbook holds records from the submission channels and workflow state.
- MailApp
A configured scheduled worker sends staff notices and eligible opt-in receipts.
- Centralized content, explicit configuration
- Keep contact and video changes in WordPress, and the website relay destination server-side. Mobile submissions retain their own endpoint configuration.
- Preserve existing clients
- Use one video configuration for compatible HTML and the new REST endpoint, allowing client migration without removing the working read path.
- Handle uncertainty and duplicate submissions
- Reuse submission identifiers for duplicate detection. Distinguish an unknown network result from an explicit rejection before encouraging a retry.
- Separate saving from sending
- Store records before initializing eligible notifications. Queue delivery separately, with no promise of immediate or exactly-once email delivery.
Need to connect your website, app and workflows?
Discuss WordPress customization, API integration and Google Workspace automation, with clear system responsibilities and a maintainable path forward.
