The WC_Product::get_dimensions argument is deprecated
-
Hello,
suddenly if I generate Invoice or Packing slip – even with Simple tepmlate, I′m getting this PHP error:The WC_Product::get_dimensions argument is deprecated since version 3.0. By default, get_dimensions has an argument set to true so that HTML is returned. This is to support the legacy version of the method. To get HTML dimensions, instead use wc_format_dimensions() function. Pass false to this method to return an array of dimensions. This will be the new default behavior in future versions.
Because the only thing that points to where the error comes from is generating invoice or packing slip and I have tried that with “Simple” template, can you confirm that it is not a plugin bug and where to look for the origin of the error?
Thanks you
Tom
- The topic ‘The WC_Product::get_dimensions argument is deprecated’ is closed to new replies.