Title: Woocommerce deprecated function
Last modified: September 19, 2019

---

# Woocommerce deprecated function

 *  Resolved [Kokomo](https://wordpress.org/support/users/kokomoweb/)
 * (@kokomoweb)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-deprecated-function/)
 * Hi we’re using the premium version of the plugin but i’m assuming this issue 
   is in both plugins. I am constantly getting this notice in my error log and your
   plugin is the only plugin i have that is using that deprecated function:
 * 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.\nPHP
   message: 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.\
   nPHP message: 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.\
   n

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [WPClever](https://wordpress.org/support/users/wpclever/)
 * (@wpclever)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-deprecated-function/#post-11953069)
 * Hi [@kokomoweb](https://wordpress.org/support/users/kokomoweb/) ,
 * We would like to let you know that your help ticket has been handed over to our
   developers for consideration. We will try to solve this and keep you informed
   when we release a new update or find a solution as soon as possible. Thank you
   for your patience!
 * Sincerely.
 *  Thread Starter [Kokomo](https://wordpress.org/support/users/kokomoweb/)
 * (@kokomoweb)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-deprecated-function/#post-11953117)
 * Thank-you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Woocommerce deprecated function’ is closed to new replies.

 * ![](https://ps.w.org/woo-smart-compare/assets/icon-128x128.png?rev=1858171)
 * [WPC Smart Compare for WooCommerce](https://wordpress.org/plugins/woo-smart-compare/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-smart-compare/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-smart-compare/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-smart-compare/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-smart-compare/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-smart-compare/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kokomo](https://wordpress.org/support/users/kokomoweb/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-deprecated-function/#post-11953117)
 * Status: resolved