woocommerce_attribute filter. Closes #768.
This commit is contained in:
parent
2b9a03db2c
commit
4200f43d52
|
@ -167,6 +167,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - Payment gateway API tweaks - get_title, get_icon, get_description
|
||||
* Tweak - Price filter widgets takes you back to page 1.
|
||||
* Tweak - Changed microdata for offers/product so its picked up by google
|
||||
* Tweak - woocommerce_attribute filter if needed
|
||||
* Fix - Widget init function conflict with widget logic
|
||||
* Fix - PLN currency code
|
||||
* Fix - Variation get shipping class ID
|
||||
|
|
|
@ -49,14 +49,14 @@ if ( empty( $attributes ) && ( ! $product->enable_dimensions_display() || ( ! $p
|
|||
<td><?php
|
||||
if ( $attribute['is_taxonomy'] ) {
|
||||
|
||||
echo implode( ', ', woocommerce_get_product_terms( $product->id, $attribute['name'], 'names' ) );
|
||||
$values = woocommerce_get_product_terms( $product->id, $attribute['name'], 'names' );
|
||||
echo apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values );
|
||||
|
||||
} else {
|
||||
|
||||
// Convert pipes to commas
|
||||
$value = explode( '|', $attribute['value'] );
|
||||
$value = implode( ', ', $value );
|
||||
echo wpautop( wptexturize( $value ) );
|
||||
// Convert pipes to commas and display values
|
||||
$values = explode( '|', $attribute['value'] );
|
||||
echo apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values );
|
||||
|
||||
}
|
||||
?></td>
|
||||
|
|
Loading…
Reference in New Issue