Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how hide empty category wordpress woocommerce

function woo_hide_product_categories_widget( $list_args ){

            $list_args[ 'hide_empty' ] = 1;

            return $list_args;

}

add_filter( 'woocommerce_product_categories_widget_args', 'woo_hide_product_categories_widget' )
Source by njengah.com #
 
PREVIOUS NEXT
Tagged: #hide #empty #category #wordpress #woocommerce
ADD COMMENT
Topic
Name
2+5 =