/** * Forcefully Display ALL Gravity Forms (Form ID 112) Entries Before Any Processing * This ensures debugging is the FIRST thing executed before any CSV processing or matching. */ function gf_force_display_all_entries() { if ( ! class_exists('GFAPI') ) { echo "Gravity Forms API not available."; return; } echo "

FORCED DEBUG: Displaying ALL Entries from Gravity Forms (Form ID 112)

"; $search_criteria = array( 'status' => 'active' ); $sorting = array( 'key' => 'id', 'direction' => 'ASC' ); $page_size = 100; $offset = 0; $entry_count = 0; do { $paging = array( 'offset' => $offset, 'page_size' => $page_size ); $entries = GFAPI::get_entries(112, $search_criteria, $sorting, $paging); if ( is_wp_error($entries) ) { echo "

ERROR: " . esc_html($entries->get_error_message()) . "

"; return; } foreach ( $entries as $entry ) { $entry_count++; echo "

Entry #{$entry_count}

"; echo "
";
            print_r($entry); // Full array debug
            echo "


"; // Separators for readability flush(); // Ensure each entry is printed immediately } $offset += count($entries); } while ( count($entries) == $page_size ); echo "

END OF FORCED DEBUGGING: Displayed {$entry_count} Entries

"; flush(); } // FORCE this function to run IMMEDIATELY upon plugin execution add_action('init', 'gf_force_display_all_entries', 1); Active – SafeHomeCentral

Tag Archives: Active