function scan_form_plugins_usage() { if ( ! current_user_can( 'manage_options' ) ) return; if ( ! isset( $_GET['scan_forms'] ) ) return; $results = []; $posts = get_posts([ 'post_type' => 'any', 'post_status' => 'publish', 'posts_per_page' => -1, ]); foreach ( $posts as $post ) { $content = $post->post_content; $found = []; // --- Contact Form 7 --- // CF7 shortcode if ( preg_match_all( '/\[contact-form-7[^\]]*\]/', $content, $matches ) ) { $found['CF7_shortcode'] = $matches[0]; } // CF7 block (Gutenberg) if ( strpos( $content, 'wpcf7/contact-form' ) !== false ) { $found['CF7_block'] = ['block embed detected']; } // --- Gravity Forms --- // GF shortcode if ( preg_match_all( '/\[gravityform[s]?[^\]]*\]/', $content, $matches ) ) { $found['GravityForms_shortcode'] = $matches[0]; } // GF block (Gutenberg) if ( strpos( $content, 'gravityforms/form' ) !== false ) { $found['GravityForms_block'] = ['block embed detected']; } // --- Page Builders --- // Elementor (stored as JSON in postmeta) $elementor_data = get_post_meta( $post->ID, '_elementor_data', true ); if ( $elementor_data ) { if ( strpos( $elementor_data, 'contact-form-7' ) !== false ) { $found['CF7_elementor'] = ['Elementor widget detected']; } if ( strpos( $elementor_data, 'gravityforms' ) !== false ) { $found['GravityForms_elementor'] = ['Elementor widget detected']; } } // Divi (stored as shortcode-style in content) if ( strpos( $content, 'et_pb_contact_form' ) !== false ) { $found['CF7_divi'] = ['Divi module detected']; } if ( preg_match_all( '/\[et_pb_gravity_forms[^\]]*\]/', $content, $matches ) ) { $found['GravityForms_divi'] = $matches[0]; } // Beaver Builder (stored in postmeta) $bb_data = get_post_meta( $post->ID, '_fl_builder_data', true ); if ( $bb_data ) { $bb_serialized = maybe_serialize( $bb_data ); if ( strpos( $bb_serialized, 'contact-form-7' ) !== false ) { $found['CF7_beaver'] = ['Beaver Builder module detected']; } if ( strpos( $bb_serialized, 'gravityforms' ) !== false ) { $found['GravityForms_beaver'] = ['Beaver Builder module detected']; } } if ( ! empty( $found ) ) { $results[] = [ 'title' => $post->post_title, 'url' => get_permalink( $post->ID ), 'forms' => $found, ]; } } // --- Output to error log only --- error_log( '=== Form Plugin Usage Scan ===' ); if ( empty( $results ) ) { error_log( 'No form embeds found.' ); } else { foreach ( $results as $r ) { error_log( '--- ' . $r['title'] . ' | ' . $r['url'] . ' ---' ); foreach ( $r['forms'] as $plugin => $details ) { error_log( ' ' . $plugin . ': ' . implode( ', ', $details ) ); } } } error_log( '=== Scan Complete ===' ); wp_die( 'Scan complete. Check your error log for results.', 'Scan Complete', [ 'response' => 200 ] ); } add_action( 'init', 'scan_form_plugins_usage' ); Display of Events from June 12, 2016 – August 7, 2016 – Page 3 – Great Hollow
  • Directions
  • Trail Map
  • Donate
  • Volunteer
  • 0 item - $0.00
  • No Item found on your cart.
Account
+1 (203) 546-7789
Get Directions
Great Hollow Nature Preserve & Ecological Research Center
  • Your Account
  • +1 (203) 546-7789
  • Home
  • About
    • History
    • News
    • The Preserve
    • Facilities
    • Staff
    • Employment
    • Consulting Services
    • Injured Wildlife
    • Annual Reports
  • Research
    • Recent and Ongoing Projects
    • Conducting Research at Great Hollow
    • Grants
    • Publications
    • Facilities for Visiting Researchers
    • Research Fellowship
  • Education
    • Field Trips & School Programs
    • Workshops for Adults
    • Birthday Parties
  • Summer Camp
  • Events
    • Events Calendar
    • Seminar Series
    • Art Programs
  • Get Involved
    • Become a Member
    • Donate
    • Volunteer
    • Planned Giving
    • Adopt a Bird of Prey
    • Great Hollow Photographers Club
    • Internships
    • Support Our Animal Ambassadors
    • Employment
  • Visit Us
    • Plan Your Visit
    • Trail Map and Directions
    • Rules and Waiver
    • Field Trips
    • Contact Us
    • Photo Gallery
Share This
10 events found.

Events

Events Search and Views Navigation

Event Views Navigation

  • List
  • Month
  • Day
  • Photo
  • Week
  • Map
Today

List of events in Photo View

  • Kids’ Drop-off: Holiday in the Hollow Craft Night
    Dec 10

    Kids’ Drop-off: Holiday in the Hollow Craft Night

    5:30 pm - 7:30 pm
  • Winter Break Drop-in Day: Winter Weather *Sold Out*
    Dec 28

    Winter Break Drop-in Day: Winter Weather *Sold Out*

    9:00 am - 3:00 pm
  • Winter Break Drop-in Day: Winter Animals *Sold Out*
    Dec 29

    Winter Break Drop-in Day: Winter Animals *Sold Out*

    9:00 am - 3:00 pm
  • Winter Break Drop-in Day: Winter Survival **Sold Out**
    Dec 30

    Winter Break Drop-in Day: Winter Survival **Sold Out**

    9:00 am - 3:00 pm
  • *Canceled* Wolf Moon Hike
    Jan 15

    *Canceled* Wolf Moon Hike

    6:00 pm - 7:30 pm
  • Kids’ Nature Night: The Lunar Calendar
    Jan 21

    Kids’ Nature Night: The Lunar Calendar

    5:00 pm - 7:00 pm
  • Winter Tree and Shrub Identification Walk
    Jan 22

    Winter Tree and Shrub Identification Walk

    10:00 am - 11:00 am
  • Kids’ Craft Night: Valentine’s Day Heart Art
    Feb 11

    Kids’ Craft Night: Valentine’s Day Heart Art

    5:00 pm - 7:00 pm
  • *Canceled* Winter Ecology Walk & Talk
    Feb 12

    *Canceled* Winter Ecology Walk & Talk

    10:00 am - 11:30 am
  • Snow Moon Hike
    Feb 16

    Snow Moon Hike

    6:00 pm - 7:30 pm
  • Previous Events
  • Today
  • Next Events
  • Google Calendar
  • iCalendar
  • Outlook 365
  • Outlook Live
  • Export .ics file
  • Export Outlook .ics file
  • Great Hollow Nature Preserve & Ecological Research Center

    225 Route 37, New Fairfield, CT 06812

    1-203-546-7789

501(c) 3 non-profit organization (EIN 47-2727931)
© All rights reserved. Great Hollow Nature Preserve & Ecological Research Center.

  • Policies
  • Contact Us