Warning: ID can’t be accessed directly
-
woo-price-per-unit.php (line 401), maybe some other lines but this is the one throwing the warning.
$prod_id=$product->id;
It should be instead:
$prod_id=$product->get_id();
Since product properties are protected ;).
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Warning: ID can’t be accessed directly’ is closed to new replies.