Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how hide empty category woocommerce wordpress

function hide_empty_category( $arg ){

            $arg[ 'hide_empty' ] = 1;

            return $arg;

}

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