apply_filters added to term name as per master
Wasn't present in my "release" version.
This commit is contained in:
parent
7602330efc
commit
5b8d5d7092
|
@ -140,7 +140,7 @@ function variable_product_type_options() {
|
|||
if ($attribute['is_taxonomy']) :
|
||||
$post_terms = wp_get_post_terms( $post->ID, $attribute['name'] );
|
||||
foreach ($post_terms as $term) :
|
||||
echo '<option '.selected($variation_selected_value, $term->slug, false).' value="'.$term->slug.'">'.$term->name.'</option>';
|
||||
echo '<option '.selected($variation_selected_value, $term->slug, false).' value="'.$term->slug.'">' . apply_filters( 'woocommerce_variation_option_name', $term->name ) . '</option>';
|
||||
endforeach;
|
||||
else :
|
||||
$options = explode('|', $attribute['value']);
|
||||
|
|
Loading…
Reference in New Issue