Filter crashes with Grouped Product
-
Hi there,
thanks to your fantastic documentation, I easily found the filter I need. It’s “woocommerce_gzd_unit_price_html” and works fine until I publish a grouped product. Then it crashes. Here are the – I think – relevant parts of the error message.PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 2 passed in /***/wp-includes/class-wp-hook.php on line 324 and exactly 3 expected in***/wp-content/themes/nk-fse-child/functions.php:196,
***/wp-includes/class-wp-hook.php(324): {closure}('Preis pro apply_filters('Preis pro <spa…', Array),
***/wp-content/plugins/woocommerce-germanized/includes/class-wc-gzd-product-grouped.php(305): apply_filters('woocommerce_gzd…', 'Preis pro <spa…', Object(WC_GZD_Product_Grouped))
- You must be logged in to reply to this topic.