[fixed] Call to a member function is_type() on boolean in line 231
-
WC 2.6
Call to a member function is_type() on boolean in /home/xxx/public_html/wp-content/plugins/woocommerce-product-stock-alert/classes/class-woo-product-stock-alert-admin.php on line 231
Fix:
change line 231 to
if( is_object($product_obj) && $product_obj->is_type(‘variable’) ) {This way there are status checks done on non existing product objects
https://www.ads-software.com/plugins/woocommerce-product-stock-alert/
- The topic ‘[fixed] Call to a member function is_type() on boolean in line 231’ is closed to new replies.