Check If Form Will Be Loaded on Page
This snippet will allow you to check if a form will be loaded on the current page and do something if it will be. Note: this is a simple version that will only work on singular views where the [gravityforms] shortcode is used in the post content.
Instructions
See “Where do I put snippets?” in our documentation for installation instructions.
Code
Filename: gw-check-if-form-will-be-loaded.php