Video Revealer Form
This is a plugin for collecting email and phone numbers, and revealing a video in return.
by Pasha Loguinov · github.com/pasha-log/video-revealer-form
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/pasha-log/video-revealer-form/archive/refs/heads/master.zipWordPress Video Revealer Form Plugin
Description:
Built a plugin that is a contact form that reveals a hidden unlisted YouTube video that informs realtors of Home Equity Conversion Mortgage for Home Purchase (H4P). Implemented robust security measures:
- Client-side and server-side validation to ensure data integrity.
- Nonce verification for enhanced form security.
- Sanitization of input fields using sanitize functions.
- Integrated v3 reCAPTCHA to prevent spam submissions.
- Encrypted sensitive contact information stored in the database.
After the video is revealed, the plugin uses the YouTube Player API Reference for iframe Embeds to determine when the player reaches the end to conditionally render buttons leading to further resources.
The form can be deployed anywhere on a WordPress site using the shortcode [video_revealer_form].
Technologies Used:
- PHP
- SQL
- jQuery
- CSS
- HTML
- WordPress Developer Resources Functions
- YouTube Player API Reference for iframe Embeds
The landing page. The HTML markup is not included in this repository.
The modal containing a shortcode of the video revealer form.
The video is revealed after form submission, which programmatically reveals more resources by the end of the video. The video's featured image is partially buffed out for privacy reasons.
The settings page for the submissions, where admin can easily switch out the video link, change who receives email notifications, and see all submissions with the choice to delete any of them. Most of the information has been buffed out for privacy.
.png)