2.1 KiB
AI Instructions
This is a local WordPress site managed by WordPress Studio. For WordPress Studio instructions, see @STUDIO.md
Customising this file: Feel free to edit, extend, or replace the contents below.
This Site — hub-insurance
An insurance "Start a Quote" website. Public Gravity Forms quote submissions are pushed to INSTANDA's Package API for policy administration.
Stack (confirm live values with studio status): WordPress 7.0 / PHP 8.5 on
Pressable (Automattic for Agencies; the pressable-cache-management mu-plugin handles
edge cache) · GeneratePress + GenerateBlocks/Pro + GP Premium · ACF Pro ·
Gravity Forms (+ SMTP/reCAPTCHA/GA add-ons) · Yoast SEO · Google Tag Manager.
Active theme: GFeneratePress — a classic child of generatepress (NOT a block
theme; STUDIO.md's "always build block themes" note does not apply to this site). Front-end
customization lives here:
wp-content/themes/GFeneratePress/style.css— site CSSwp-content/themes/GFeneratePress/functions.php— Gravity Forms behaviour: force AJAX, custom validation copy, and date-range validation for Form ID 5 (Start Date = field 8, End Date = field 9) plus a jQuery-UI datepicker UTC fix.hello-elementor/HelloChildThemeare inactive and Elementor isn't installed — ignore them.
Custom plugin: esp-instanda-integration (wp-content/plugins/esp-instanda-integration/)
— the site's key custom code. A Gravity Forms feed add-on (namespace ESP\Instanda,
classes in includes/) that pushes "Start a Quote" submissions to the INSTANDA Package API with:
- a write-ahead transaction table (custom DB table + daily cron retention cleanup),
- native GF entry recording, admin resubmit, and a test-mode lock.
- Requires PHP 8.5+, WP 7.0+, Gravity Forms 2.10.3+ (shows an admin notice and bails if unmet — never
wp_die). - Form-agnostic: the INSTANDA feed can attach to any GF form. Form ID 5 is the live "Start a
Quote" form — keep the field IDs in
GFeneratePress/functions.phpin sync with it.