/** * AGPD DEBUGGER: Print fitment status to the top of the Product Edit screen. * DELETE THIS AFTER FIXING. */ add_action('admin_notices', 'agpd_debug_fitment_connection'); function agpd_debug_fitment_connection() { // Only run on product edit screen global $post; if (!$post || $post->post_type !== 'product') return; $child_id = $post->ID; $base_id = get_post_meta($child_id, '_agpd_base_product_id', true); // Check 1: Does the link exist? if (!$base_id) { echo '

AGPD DEBUG: Connection Broken. This child product (ID: '.$child_id.') has NO Base Product ID saved. You must re-run "Force Resync" on the parent.

'; return; } // Check 2: Does the Parent have data? $parent_data = get_post_meta($base_id, '_ebay_item_compatibility_list', true); $parent_status = !empty($parent_data) ? "YES (".count($parent_data)." vehicles)" : "NO (Parent is empty)"; // Check 3: Does the Bridge work? // We explicitly call get_post_meta on the child to see if our filter intercepts it. $child_data_via_bridge = get_post_meta($child_id, '_ebay_item_compatibility_list', true); $bridge_status = !empty($child_data_via_bridge) ? "SUCCESS (".count($child_data_via_bridge)." vehicles)" : "FAILED (Bridge returned empty)"; echo '
'; echo '

AGPD FITMENT DEBUGGER

'; echo ''; echo '
'; } Page not found - Highway 71 Auto Parts
It looks like the link pointing here was faulty. Maybe try searching?
Scroll to Top