Hook for adding filters
-
Is it possible to add a filter to the widget that is displayed by WoP?
For instance: I’ve added a filter that exclude categories from the Woocommerce Product Category Widget. This works for the widgets in the ‘regular’ sidebars, but not for the widget displayed with WoP. The code (that I found on the internet) is:
add_filter( ‘woocommerce_product_categories_widget_args’, ‘exclude_product_cat_widget’ );
function exclude_product_cat_widget( $args ) {
$args[‘exclude’] = array(’98’,’103′);
return $args;
}Is there a way to make this work for widgets displayed with WoP?
- The topic ‘Hook for adding filters’ is closed to new replies.