Filter fatal error when no tax is set
-
Hello!
It seems the filter gives a fatal error if no tax is set.
The fix in my case is easy, just delete the function and everything works fine.
Error below:
Fatal error: Uncaught Error: Call to undefined function Perfect_Woocommerce_Brands\is_product_taxonomy() in /home/noktoro/public_html/wp-content/plugins/perfect-woocommerce-brands/classes/class-perfect-woocommerce-brands.php:206 Stack trace: #0 /home/noktoro/public_html/wp-includes/class-wp-hook.php(288): Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands->pwb_brand_filter(Object(WP_Query)) #1 /home/noktoro/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array) #2 /home/noktoro/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array) #3 /home/noktoro/public_html/wp-includes/class-wp-query.php(1757): do_action_ref_array('pre_get_posts', Array) #4 /home/noktoro/public_html/wp-includes/class-wp-query.php(3413): WP_Query->get_posts() #5 /home/noktoro/public_html/wp-includes/post.php(2039): WP_Query->query(Array) #6 /home/noktoro/public_html/wp-content/plugins/site-announcements/public/class-cw-site-announcements-public.php(108): get_posts(Array) #7 /home/noktoro/public_html/wp-content/p in /home/noktoro/public_html/wp-content/plugins/perfect-woocommerce-brands/classes/class-perfect-woocommerce-brands.php on line 206
- The topic ‘Filter fatal error when no tax is set’ is closed to new replies.