Site icon Hip-Hop Website Design and Development

Finest strategy to deal with a kind publish in plugin

I am doing a plugin that wants to have the ability to publish information to a 3rd occasion API. Customers will fill out a kind and press submit.

The shape itself – would it not be “right” to easily append html to a web page content material with a the_content() filter? I am including the shape primarily based on a bunch of settings saves as meta for every web page or publish. I would prefer to keep away from tampering with templates…

With different phrases; if some meta is ready for the web page – append some html (the shape that customers will enter information to).

Additionally – when customers press “submit” in that kind – how ought to I deal with the request? Proper now I am considering that I’ll load wordpress in a very separate php-file (in an effort to get my hand on all these funky wp-functions and constants) – however that feels form of improper…

Is there a build-in strategy to each show the shape after which deal with the request?

Thanks very a lot!