WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_variation_option_name хук-фильтр . WC 1.0

This handles < 2.4.0 bw compatibility where text attributes were not sanitized.

Использование

add_filter( 'woocommerce_variation_option_name', 'filter_function_name_3870', 10, 4 );
function filter_function_name_3870( $option, $null, $attribute, $product ){
	// filter...

	return $option;
}
$option
-
$null
-
$attribute
-
$product
-

Где вызывается хук

wc_dropdown_variation_attribute_options()
woocommerce_variation_option_name
wc_get_formatted_cart_item_data()
woocommerce_variation_option_name
woocommerce/includes/wc-template-functions.php 2988
$html    .= '<option value="' . esc_attr( $option ) . '" ' . $selected . '>' . esc_html( apply_filters( 'woocommerce_variation_option_name', $option, null, $attribute, $product ) ) . '</option>';
woocommerce/includes/admin/meta-boxes/views/html-variation-admin.php 39
<option <?php selected( $selected_value, $option->slug ); ?> value="<?php echo esc_attr( $option->slug ); ?>"><?php echo esc_html( apply_filters( 'woocommerce_variation_option_name', $option->name, $option, $attribute->get_name(), $product_object ) ); ?></option>
woocommerce/includes/admin/meta-boxes/views/html-variation-admin.php 43
<option <?php selected( $selected_value, $option ); ?> value="<?php echo esc_attr( $option ); ?>"><?php echo esc_html( apply_filters( 'woocommerce_variation_option_name', $option, null, $attribute->get_name(), $product_object ) ); ?></option>
woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php 36
<option <?php selected( $selected_value, $option->slug ); ?> value="<?php echo esc_attr( $option->slug ); ?>"><?php echo esc_html( apply_filters( 'woocommerce_variation_option_name', $option->name, $option, $attribute->get_name(), $product_object ) ); ?></option>
woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php 40
<option <?php selected( $selected_value, $option ); ?> value="<?php echo esc_attr( $option ); ?>"><?php echo esc_html( apply_filters( 'woocommerce_variation_option_name', $option, null, $attribute->get_name(), $product_object ) ); ?></option>
woocommerce/includes/wc-template-functions.php 2981
$html .= '<option value="' . esc_attr( $term->slug ) . '" ' . selected( sanitize_title( $args['selected'] ), $term->slug, false ) . '>' . esc_html( apply_filters( 'woocommerce_variation_option_name', $term->name, $term, $attribute, $product ) ) . '</option>';
woocommerce/includes/wc-template-functions.php 3549
$value = apply_filters( 'woocommerce_variation_option_name', $value, null, $taxonomy, $cart_item['data'] );

Где используется хук (в ядре WC)

Использование не найдено.