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.

Testing and debugging your contact form plugin

Testing and debugging your contact form plugin - WordPress Tutorial

From the course: Custom WordPress Plugins: Design, Develop, and Distribute

Testing and debugging your contact form plugin

- We have set up our files for our contact form plugin, built out the form, and even added the ability for the form information to be emailed. Now, let's activate our plugin and test out if it's working. First, go to your permalinks again and save changes. Remember, this is just a refresher for the URLs on our site. Navigate to the plugins in your dashboard again. You'll see your new plugin and the option to activate. Activate your plugin. Remember that we're using a shortcode to make the form appear, so you'll need to go to "Pages" and add a new page. We're going to call this page "Contact Us". On the page, let's add some blocks. First, let's do a group and then a column. Inside of the column, let's add the shortcode block. In the shortcode block, add the shortcode we declared in our "contacts for everyone.php" file. If you remember, we named it "cfe_contact_form". Don't forget the brackets. Now let's publish the page and view our contact form. Amazing. You can now see your contact…

Contents