Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .sku_wrapper{display: none;}
- add_action('admin_head', 'my_custom_admin_styles');
- function my_custom_admin_styles() {
- // just add the css selectors below to hide each field as required
- echo '<style>
- #woocommerce-product-data .hndle {
- display: none; }
- </style>';
- }
- /*For remove tab from product tab*/
- function remove_linked_products($tabs){
- unset($tabs['inventory']);
- unset($tabs['shipping']);
- return($tabs);
- }
- add_filter('woocommerce_product_data_tabs', 'remove_linked_products', 10, 1);
- /*Remove Virtual and Downloadeble checkbox*/
- function my_remove_product_type_options( $options ) {
- if ( isset( $options['virtual'] ) ) {
- unset( $options['virtual'] );
- }
- if ( isset( $options['downloadable'] ) ) {
- unset( $options['downloadable'] );
- }
- return $options;
- }
- add_filter( 'product_type_options', 'my_remove_product_type_options' );
Add Comment
Please, Sign In to add comment