From 38a2aac9973a252afafa0c57f842b69709a25fc3 Mon Sep 17 00:00:00 2001 From: David Garcia Watkins Date: Wed, 27 Feb 2013 15:14:05 +0100 Subject: [PATCH] Apply filters to custom attribute option names for translation --- classes/class-wc-cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-wc-cart.php b/classes/class-wc-cart.php index b894701c6c4..a06bd1483db 100644 --- a/classes/class-wc-cart.php +++ b/classes/class-wc-cart.php @@ -574,7 +574,7 @@ class WC_Cart { if ( ! is_wp_error( $term ) && $term->name ) $value = $term->name; } else { - $value = ucfirst( $value ); + $value = ucfirst( apply_filters( 'woocommerce_variation_option_name', $value ) ); } if ( $flat )