slushman / now-hiring

WordPress plugin for displaying job openings
GNU General Public License v2.0
99 stars 41 forks source link

Form and validation on the front end #6

Open ghost opened 7 years ago

ghost commented 7 years ago

I'm using the WordPress Plugin Boilerplate code from https://github.com/DevinVinson/WordPress-Plugin-Boilerplate, along with some of the great elements of your plugin. In particular, I'm using the field definitions and validation / sanitize in the back end.

The Plugin I'm working on includes a custom page type in the public side, and one of the pages includes a form. What I'm wondering is, how would I use those form field definitions and sanitize routine in the front end?

I do have the items such as plugin-name-field-text.php moved to an "includes" folder under the plugin root, and have updated the references in the back end. This was with the idea of using those items in both places.

But what I don't know is how to include them in the front end, in a form. Any help would be greatly appreciated!