mbcreation

Quick export : add size and color attribute

May 28th, 2014
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. //functions.php
  2.  
  3. function custom_product_meta($array)
  4. {
  5.     $array[] = 'attribute_pa_color'; //sometimes it's just attribute_color
  6.     $array[] = 'attribute_pa_size'; //sometimes it's just attribute_size
  7.     return $array;
  8. }
  9. add_filter('wqep_included_order_product_keys_filter', 'custom_product_meta');
Advertisement
Add Comment
Please, Sign In to add comment