Skip to content

Instantly share code, notes, and snippets.

@fervous
Created April 8, 2017 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fervous/db7322a7c9d04db2cca243a996402c5c to your computer and use it in GitHub Desktop.
Save fervous/db7322a7c9d04db2cca243a996402c5c to your computer and use it in GitHub Desktop.
remove attributes tab from the product-edit.php product form WC Vendors Pro
// Remove attribute tab on the product-edit form.
add_filter( 'wcv_product_meta_tabs', 'remove_product_tabs' );
function remove_product_tabs( $tabs ){
unset( $tabs['attributes'] );
return $tabs;
} // remove_product_tabs()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment