Sarika Contact Form
Custom WordPress Contact Form Plugin
by Sarika · github.com/sarikayadav24/sarika-contact-form · website
★ 0stars
0forks
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/sarikayadav24/sarika-contact-form/archive/refs/heads/main.zipReadme
Sarika Contact Form
A custom WordPress contact form plugin that saves messages to the database and sends email notifications — built without any third-party libraries.
Features
- Shortcode
[sarika_contact_form]— add form to any page - Saves all submissions to a custom database table
- Email notification sent to admin on every new message
- Reply-To header set to the sender's email
- Success and error messages after submission
- Security — nonce verification on every submission
- Input sanitization and validation
- Admin panel to view, mark as read and delete messages
- Unread message count displayed in admin
- Fully styled dark form matching portfolio theme
Tech Stack
- PHP
- MySQL (via
$wpdb) - WordPress Hooks and Shortcodes
- HTML5 / CSS3
Plugin Structure
sarika-contact-form/
├── sarika-contact-form.php # Main plugin file
├── includes/
│ ├── shortcode.php # Renders the contact form
│ ├── form-handler.php # Processes form submission
│ └── admin-page.php # Admin messages panel
└── assets/
└── contact-form.css # Form styles
Installation
- Download or clone this repository
- Upload the
sarika-contact-formfolder to/wp-content/plugins/ - Go to Plugins → Installed Plugins in WordPress admin
- Activate Sarika Contact Form
- Create a new page and add shortcode:
[sarika_contact_form] - Visit the page to see the form
Usage
Add this shortcode to any WordPress page or post:
[sarika_contact_form]
Admin Panel
After activation go to Contact Messages in the WordPress admin sidebar to:
- View all submitted messages
- Mark messages as read
- Delete messages
Author
Sarika Yadav
- GitHub: github.com/sarikayadav24
- Email: sarika86.yadav@gmail.com