+function custom_woo_ce_extend_product_fields( $fields ) {
+ 'label' => __( 'Fruit', 'woo_ce' ),
+ 'hover' => __( 'Fruit within functions.php', 'woo_ce' )
+ 'label' => __( 'Vegetable', 'woo_ce' ),
+ 'hover' => __( 'Vegetable within functions.php', 'woo_ce' )
+add_filter( 'woo_ce_product_fields', 'custom_woo_ce_extend_product_fields' );
+function custom_woo_ce_extend_product_item( $product, $product_id ) {
+ $term_taxonomy = 'product-fruit';
+ $product->fruit = woo_ce_get_product_assoc_tags( $product_id, $term_taxonomy );
+ $term_taxonomy = 'product-vegetable';
+ $product->vegetable = woo_ce_get_product_assoc_tags( $product_id, $term_taxonomy );
+add_filter( 'woo_ce_product_item', 'custom_woo_ce_extend_product_item', 10, 2 );