-
-
Save flabernardez/d247905630a687e19e5f6bdb59af1f42 to your computer and use it in GitHub Desktop.
#woocommerce Eliminar tipos de productos en el selector de opciones
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
<?php | |
function fla_remove_product_types( $types ){ | |
unset( $types['grouped'] ); | |
unset( $types['external'] ); | |
unset( $types['variable'] ); | |
unset( $types['simple'] ); | |
unset( $types['downloads'] ); | |
return $types; | |
} | |
add_filter( 'product_type_selector', 'fla_remove_product_types' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment