Created
December 10, 2019 09:48
-
-
Save bulentsakarya/fd21998051db1ebaa8e5d2e4c4386f30 to your computer and use it in GitHub Desktop.
WooCommerce remove product types.
This file contains hidden or 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
/** | |
* @snippet Customize Product Types | |
*/ | |
function remove_product_types( $types ){ | |
//unset( $types['simple'] ); | |
//unset( $types['grouped'] ); | |
//unset( $types['external'] ); | |
//unset( $types['variable'] ); | |
return $types; | |
} | |
add_filter( 'product_type_selector', 'remove_product_types' ); | |
/** Remove the lines in front of the type of product you want to use */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment