In one shop the following function throws a fatal error. What does the error tell me exactly?
The function:
$product = wc_get_product( $product_id );
$price = $product->get_price();
The error:
Fatal error:
Uncaught Error: Call to a member function get_price() on boolean in
Does this mean that I get a boolean back instead of a string or number? The error is coming from the line where I invoke get_price()