/** * Force Display ALL Gravity Forms (Form ID 112) Entries BEFORE Any Processing */ function gf_force_display_all_entries() { if ( ! class_exists('GFAPI') ) { echo "

ERROR: Gravity Forms API is not available.

"; return; } echo "

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

"; $search_criteria = array( 'status' => 'active' ); $sorting = array( 'key' => 'id', 'direction' => 'ASC' ); $page_size = 50; // Reduced page size to prevent memory overload $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); // Print full entry array for debugging
            echo "


"; flush(); // Ensure each entry prints immediately } $offset += count($entries); } while ( count($entries) == $page_size ); echo "

END OF DEBUGGING: Displayed {$entry_count} Entries

"; flush(); } // Force the debugging function to run at the start of the admin menu page add_action('admin_menu', 'gf_force_display_all_entries', 1); Investing – SafeHomeCentral

Tag Archives: Investing