WordPress at Your Fingertips
filter is not described

woocommerce_product_categories_widget_main_term filter-hook . WC 1.0

Usage

add_filter( 'woocommerce_product_categories_widget_main_term', 'filter_function_name_6122', 10, 2 );
function filter_function_name_6122( $terms[0], $terms ){
	// filter...

	return $terms[0];
}
$terms[0]
-
$terms
-

Where the hook is called

WC_Widget_Product_Categories::widget()
woocommerce_product_categories_widget_main_term
woocommerce/includes/widgets/class-wc-widget-product-categories.php 149
$main_term           = apply_filters( 'woocommerce_product_categories_widget_main_term', $terms[0], $terms );

Where in WP core the hook is used WooCommerce

Usage not found.