GithubHelp home page GithubHelp logo

ara303 / essential-contact-form Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 43 KB

A contact form for WordPress with AJAX submitting and support for reCAPTCHA v3. No nonsense. Wicked. ๐Ÿ˜Ž

License: GNU General Public License v2.0

PHP 100.00%
wordpress plugin contact-form

essential-contact-form's Introduction

Essential Contact Form

The essential contact form plugin for WordPress. Deliberately designed to be as "cut-back" as possible and lightweight in order to be versatile.

Features

  • Collects the user's name, email address or phone number, and their message
  • reCAPTCHA v3 for spam/bot protection
  • Submits asynchronously
  • Email send to admin/root user's email address
  • Inline validation and server-side validation both
  • No default CSS - bring your own styling (none is even provided)

Usage

  1. Get a reCAPTCHA v3 Site Key and Secret Key from Google. There's an WP-Admin view to help you with that.
  2. Put [essential_contact_form] shortcode on any page.

I always use Classic Editor so I don't know how it works if you use Block Editor/Gutenberg - I believe there's a block for shortcodes, so use that.

I always intended but never got around to "de-coupling" the template file from the theme code itself. It was my hope that a developer could put a file called wicked-contact-form.php inside of their theme directory and it'd override the default template (this is how WooCommerce is so customisable and it's awesome). The incentive was never really there because I just made the default template be what I needed it to be anyway.

(Potential) roadmap

  • Set any email address for form submissions to be sent to - implemented and works, form fields on Admin view are in the wrong order and I don't know why. Also should default to root user (id 1)'s email, not sure if it does
  • Allow overriding of template (shortcode output) with one in the current theme's directory, a la WooCommerce
  • Break out the JS into its own file

essential-contact-form's People

Contributors

edadams avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.