Closed ideag closed 7 years ago
Sounds logical! I don't see any reason why this would cause issues, but will gather some feedback first...
Thanks for the PR!
My pleasure. I love the premise for this plugin and I hope it will gain traction with developers in time.
This makes the readme section Using the shortcode outside post content
obsolete, so that should probably be removed.
:+1: a0bc975
I can see that you are currently conditionally loading JS when the shortcode is present within post content. That means developers have to manually enqueue scripts if they use the form anywhere else in the site - widgets, templates, etc.
But since the JS is footer-based, why not just enqueue it within shortcode method, so it gets loaded anytime someone uses the shortcode, no matter where?