Improve handling uncaught fatal errors and fix invalid JSON response
ediamin opened this issue · 0 comments
ediamin commented
Example code
<?php
$product_id = 30;
$product = wc_get_product( $product_id );
$product->get_total();
$product
doesn't have get_total()
method, so it'll cause a fatal error that we can currently find in debug.log. WP Console should show this in error notice instead.