daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Oct 13th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('woocommerce_order_product_title', 'xa_product_dimension_add_func',99,2);
  2.  
  3. function xa_product_dimension_add_func($item_name ='', $product ='')
  4. {
  5.     if(!empty($product))
  6.     {
  7.         return $item_name . ' <small>( '.wc_format_dimensions($product->get_dimensions(false)).' )</small>';
  8.     }else
  9.     {
  10.         return $item_name;
  11.     }
  12. }
RAW Paste Data
Top