Created
December 29, 2019 22:32
-
-
Save rashedripon/a5b9b251a008ca26509d7ac1b32c6b42 to your computer and use it in GitHub Desktop.
Remove shipping, tax & attributes from vendor product edit page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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