Skip to content

Instantly share code, notes, and snippets.

@kellenmace
Last active March 29, 2019 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kellenmace/613df98ee2276ab1eb1c31f28ba19575 to your computer and use it in GitHub Desktop.
Save kellenmace/613df98ee2276ab1eb1c31f28ba19575 to your computer and use it in GitHub Desktop.
<?php
// Require the file that contains the GravityFormsShortcodeFinder class.
require_once plugin_dir_path( __FILE__ ) . 'src/GravityFormsShortcodeFinder.php';
// Find all the pages that contain the Gravity Forms with an ID of 36.
$pages_with_form = ( new Gravity_Forms_Shortcode_Finder( 36 ) )->find();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment