Chapter 7: Accepting User Content Submissions
Giving users the ability to contribute content to a website is always a good way to engage the community and keep content fresh on a website. That being said, WordPress does not provide any built-in mechanism for site visitors to submit content to site administrators. This is even more obvious when you consider that adding a simple contact form to a site requires the installation of a plugin.
Going back to the book review system that was put in place in Chapter 4, The Power of Custom Post Types, this chapter will show you how to create a user-facing form to allow visitors to submit their own book reviews to a website. We'll also see how to save this information in the site database, send out email notifications, and implement spam protection through the following recipes:
- Creating a client-side content submission form
- Saving user-submitted content in custom post types
- Sending email notifications upon new submissions...