Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WooCommerce Snippet - Festgelegte Produktkategorie in der Seitenleiste ausblenden
add_filter( 'woocommerce_product_categories_widget_args', 'wdm_edit_product_cat_widget_args' );
function wdm_edit_product_cat_widget_args( $cat_args ) {
$cat_args['exclude'] = array('20'); // Produkt ID (20) austauschen
return $cat_args;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment