From the course: Custom WordPress Plugins: Design, Develop, and Distribute
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Creating a contact form with shortcodes - WordPress Tutorial
From the course: Custom WordPress Plugins: Design, Develop, and Distribute
Creating a contact form with shortcodes
- You're already a pro at setting up files for plugins, so let's jump right into it. Like we did with our project management plugin, let's create our files for our contact form plugin. Note, you'll follow along with me as I code these files out for this video, but if you need to reference the complete code, it will be available in your chapter two exercise files on GitHub. The name of our contact form plugin will be contacts for everyone. In your plugins folder, create a folder named contacts-for-everyone, all lowercase. In this folder, we will first add a file, contacts-for-everyone.php. Next, add the file contact-form.php in the same folder. Lastly, let's add our CSS folder. Inside of the CSS folder. Create a CSS file called contact-form.CSS. Now we have our file structure created. Next, let's navigate to our contacts-for-everyone.PHP file. If you remember from our prior plugin, this file is our main plugin file. Here we want to define our plugin metadata. Let's start with an open…