Last active
November 19, 2018 09:33
-
-
Save wooexperte/9b262a1ca3269dab0fcf0baaf99ad598 to your computer and use it in GitHub Desktop.
WooCommerce Snippet - Festgelegte Produktkategorie in der Seitenleiste ausblenden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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