Contact Plugin
WordPress contact plugin (PHP, Composer, Carbon Fields)
by insafinhaam · github.com/insafinhaam/wordpress-contact-plugin
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/insafinhaam/wordpress-contact-plugin/archive/refs/heads/main.zipPlugin Name: Contact Plugin
Description: Plugin for my custom contact form
Version: 1.0.0
Text Domain: contact-plugin
Description
The Contact Plugin is a simple and efficient solution to add a custom contact form to your WordPress website. This plugin provides an easy-to-use contact form that allows users to send messages directly to the site administrator.
Features
- Easy integration with a shortcode
- Customizable form fields
- Nonce verification for secure submissions
- AJAX form submission
- Email notifications to the site administrator
Installation
- Download the plugin zip file and unzip it.
- Upload the
contact-plugindirectory to the/wp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
- Ensure that your theme or child theme has
wp_head()andwp_footer()functions in the appropriate template files.
Usage
- Create a new page or post where you want to display the contact form.
- Add the following shortcode to the content area:
[contact]. - Publish the page or post to display the contact form on your site.
Customization
You can customize the appearance of the contact form by modifying the contact-form.css file located in the includes/templates/ directory.
Plugin Files
contact-plugin.php- Main plugin fileincludes/contact-form.php- Contains the contact form shortcode and AJAX handlerincludes/templates/contact-form.php- The contact form templateincludes/templates/contact-form.css- CSS file for styling the contact formvendor/autoload.php- Autoload file for dependencies (if any)
Support
For support and troubleshooting, please visit the plugin's support page on WordPress.org.
Changelog
1.0.0
- Initial release
License
This plugin is licensed under the GPLv2 or later.