Skip to content

Instantly share code, notes, and snippets.

@agenciadw
Forked from tanmay27vats/function.php
Last active February 4, 2022 20:03
Show Gist options
  • Save agenciadw/1b7f6da393b40213ad9ee851400eaed8 to your computer and use it in GitHub Desktop.
Save agenciadw/1b7f6da393b40213ad9ee851400eaed8 to your computer and use it in GitHub Desktop.
Remove "Product Type/Product Data" Dropdown Options - WooCommerce
add_filter( 'product_type_selector', 'remove_product_types' );
function remove_product_types( $types ){
unset( $types['grouped'] );
unset( $types['external'] );
unset( $types['variable'] );
return $types;
}
@agenciadw
Copy link
Author

This code remove product type when create the product.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment