Guest User

Untitled

a guest
Jul 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. .sku_wrapper{display: none;}
  2.  
  3. add_action('admin_head', 'my_custom_admin_styles');
  4. function my_custom_admin_styles() {
  5. // just add the css selectors below to hide each field as required
  6. echo '<style>
  7. #woocommerce-product-data .hndle {
  8. display: none; }
  9. </style>';
  10. }
  11.  
  12. /*For remove tab from product tab*/
  13.  
  14. function remove_linked_products($tabs){
  15. unset($tabs['inventory']);
  16. unset($tabs['shipping']);
  17. return($tabs);
  18. }
  19. add_filter('woocommerce_product_data_tabs', 'remove_linked_products', 10, 1);
  20.  
  21. /*Remove Virtual and Downloadeble checkbox*/
  22. function my_remove_product_type_options( $options ) {
  23. if ( isset( $options['virtual'] ) ) {
  24. unset( $options['virtual'] );
  25. }
  26. if ( isset( $options['downloadable'] ) ) {
  27. unset( $options['downloadable'] );
  28. }
  29. return $options;
  30. }
  31. add_filter( 'product_type_options', 'my_remove_product_type_options' );
Add Comment
Please, Sign In to add comment