LeadCapture Form WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
WordPress plugin for embedding LeadCapture.io forms via shortcode, Gutenberg block, or Elementor widget with embed and popup mode support.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/silverassist/leadcapture-form/releases/download/v1.1.2/leadcapture-form-v1.1.2.zipLeadCapture Form Plugin
WordPress plugin for embedding LeadCapture.io forms via shortcode, Gutenberg block, or Elementor widget with embed and popup mode support.
Features
- Embed Mode: Inline form embedding directly in page content
- Popup Mode: Click-triggered popup forms using LeadCapture.io trigger system
- Gutenberg Block: Visual block editor with intuitive sidebar controls and server-side rendering
- Elementor Widget: Native Elementor widget with drag-and-drop functionality
- Shortcode Support: Simple
[leadcapture_form]shortcode for direct integration - Lazy Loading: Performance-optimized — forms load only on user interaction
- Automatic Updates: Built-in GitHub update system keeps the plugin current
- Settings Hub Integration: Centralized admin interface via Silver Assist Settings Hub
- Vanilla JavaScript: No jQuery dependency for lightweight frontend
- Translation Ready: Full internationalization support
Requirements
- WordPress 5.0 or higher
- PHP 8.2 or higher
Installation
Method 1: WordPress Admin Dashboard (Recommended)
- Download the
leadcapture-form.zipfile from GitHub Releases - Go to
Plugins→Add New→Upload Plugin - Choose the ZIP file and click
Install Now - Click
Activate Plugin
Method 2: Manual Installation via FTP
- Extract the
leadcapture-form.zipfile - Upload the
leadcapture-formfolder to/wp-content/plugins/ - Activate from the WordPress Plugins page
Method 3: WP-CLI
wp plugin install leadcapture-form.zip --activate
Verification
After installation, you should see:
- Gutenberg Block: "LeadCapture Form" block in the block editor
- Elementor Widget: "LeadCapture Form" widget in the "LeadCapture Forms" category (if Elementor is installed)
- Shortcode Support:
[leadcapture_form]shortcode ready to use - Admin Page: Settings → LeadCapture (or Silver Assist → LeadCapture if Settings Hub is active)
Usage
Gutenberg Block (Recommended)
- In the WordPress editor, click "+" to add a new block
- Search for "LeadCapture Form"
- Configure settings in the sidebar:
- Form Token: Your LeadCapture.io form token (e.g.,
GLFT-XXXXX) - Mode: Embed (inline) or Popup (click-triggered)
- Height: Custom placeholder height for embed mode
- Trigger Class: CSS class for popup trigger elements
- Form Token: Your LeadCapture.io form token (e.g.,
- Publish — the form renders server-side
Elementor Widget
- Open Elementor editor
- Search for "LeadCapture Form" or browse the "LeadCapture Forms" category
- Drag & drop the widget
- Configure form token, mode, and styling options
- Publish
Shortcode
# Embed mode (inline form)
[leadcapture_form form-token="GLFT-XXXXX" mode="embed" height="600px"]
# Popup mode (click-triggered)
[leadcapture_form form-token="GLFT-XXXXX" mode="popup" trigger-class="leadforms-trigger-01"]
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
form-token |
Yes | — | LeadCapture.io form token (e.g., GLFT-XXXXX) |
mode |
No | embed |
Display mode: embed (inline) or popup (click-triggered) |
height |
No | 600px |
Placeholder height for embed mode |
trigger-class |
No | — | CSS class for popup trigger elements |
How It Works
Embed Mode
- PHP renders a placeholder with pulse animation
- JavaScript waits for user interaction (focus, mousemove, scroll, touch)
- Sets
window.form_tokenfrom the form token attribute - Loads the LeadCapture.io pixel script from
api.useleadbot.com - Script populates the
<div class="leadforms-embd-form">container
Popup Mode
- PHP renders a hidden container with popup configuration
- JavaScript loads the pixel script on user interaction
- Popup triggers via CSS class
leadforms-trigger-XXon buttons/links
Lazy Loading
The pixel script is loaded only once (singleton pattern) regardless of how many form instances are on the page. A callback queue ensures all forms are initialized after the script loads.
Automatic Updates
The plugin includes automatic updates via GitHub Releases:
- Automatic Detection: WordPress checks every 12 hours
- Native Experience: Updates appear in the standard Plugins page
- One-Click Updates: Install with a single click
- Manual Check: Settings → LeadCapture → Check for Updates
Plugin Structure
leadcapture-form/
├── leadcapture-form.php # Main plugin file (Singleton)
├── includes/
│ ├── LeadCaptureFormBlock.php # Gutenberg block handler
│ ├── LeadCaptureFormUpdater.php # GitHub updater
│ ├── LeadCaptureFormAdmin.php # Admin interface
│ └── elementor/
│ ├── WidgetsLoader.php # Elementor widgets loader
│ └── widgets/
│ └── LeadCaptureFormWidget.php # Elementor widget
├── blocks/leadcapture-form/
│ ├── block.json # Block metadata
│ ├── block.js # Block editor JS
│ └── editor.css # Block editor styles
├── assets/
│ ├── css/
│ │ ├── leadcapture-form.css # Frontend styles
│ │ └── admin-settings.css # Admin page styles
│ └── js/
│ └── leadcapture-form.js # Frontend JS (Vanilla)
├── vendor/ # Composer dependencies
├── scripts/ # Build & version scripts
├── .github/ # Workflows & copilot config
├── composer.json
├── CHANGELOG.md
├── README.md
└── LICENSE
JavaScript API
// Load a specific form container manually
window.LeadCaptureForm.loadForm("container-id");
// Check if the pixel script has been loaded
window.LeadCaptureForm.isLoaded();
// Get count of form containers on the page
window.LeadCaptureForm.getContainerCount();
Support & Documentation
- Change History: CHANGELOG.md
- Issues: GitHub Issues
- Releases: GitHub Releases
License
This plugin is licensed under the Polyform Noncommercial License 1.0.0.
Made with ❤️ by Silver Assist
Releases
4 releases. Each count is every asset in that release; expand a row for the breakdown.