It looks like the link pointing here was faulty. Maybe try searching?
/** * 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.
AGPD FITMENT DEBUGGER
'; echo '