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

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

add_filter( 'woocommerce_product_categories_widget_dropdown_args', 'wp_kama_woocommerce_product_categories_widget_dropdown_args_filter' );

/**
 * Function for `woocommerce_product_categories_widget_dropdown_args` filter-hook.
 * 
 * @param  $wp_parse_args 
 *
 * @return 
 */
function wp_kama_woocommerce_product_categories_widget_dropdown_args_filter( $wp_parse_args ){

	// filter...
	return $wp_parse_args;
}
$wp_parse_args
-

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

WC_Widget_Product_Categories::widget()
woocommerce_product_categories_widget_dropdown_args
woocommerce/includes/widgets/class-wc-widget-product-categories.php 229-240
apply_filters(
	'woocommerce_product_categories_widget_dropdown_args',
	wp_parse_args(
		$dropdown_args,
		array(
			'show_count'         => $count,
			'hierarchical'       => $hierarchical,
			'show_uncategorized' => 0,
			'selected'           => $this->current_cat ? $this->current_cat->slug : '',
		)
	)
)

Где используется хук в WooCommerce

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