Skip to content

Instantly share code, notes, and snippets.

@rashedripon
Created December 29, 2019 22:32
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 rashedripon/a5b9b251a008ca26509d7ac1b32c6b42 to your computer and use it in GitHub Desktop.
Save rashedripon/a5b9b251a008ca26509d7ac1b32c6b42 to your computer and use it in GitHub Desktop.
Remove shipping, tax & attributes from vendor product edit page
<?php
//Remove shipping, tax & attributes from product edit page
if(class_exists('Dokan_Pro_Products')) {
remove_action( 'dokan_product_edit_after_inventory_variants', array( Dokan_Pro_Products::init(), 'load_shipping_tax_content' ), 10, 2 );
remove_action( 'dokan_product_edit_after_inventory_variants', array( Dokan_Pro_Products::init(), 'load_variations_content' ), 20, 2 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment