apply_filters added to term name as per master

Wasn't present in my "release" version.
This commit is contained in:
Nirav Mehta 2012-09-04 16:58:06 +05:30
parent 7602330efc
commit 5b8d5d7092
1 changed files with 1 additions and 1 deletions

View File

@ -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']);