// Ensure direct checkout capability by syncing product IDs. add_action( 'woocommerce_gla_get_google_product_offer_id', function ( $mc_id, $product_id ) { return (string) str_replace('gla_', '', $product_id); }, 10, 2 );