Advertisement
majeedraza

WooCommerce - Change default tabs in the Product Data metabo

Apr 26th, 2020
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2. // WooCommerce - Change default tabs in the Product Data metabox
  3. add_filter( 'woocommerce_product_data_tabs', 'custom_product_data_tabs' );
  4. function custom_product_data_tabs( $tabs ) {
  5.   // unset( $tabs['general'] );
  6.   unset( $tabs['inventory'] );
  7.   unset( $tabs['shipping'] );
  8.   unset( $tabs['linked_product'] );
  9.   unset( $tabs['attribute'] );
  10.   unset( $tabs['variations'] );
  11.   unset( $tabs['advanced'] );
  12.   return $tabs;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement