Created
May 30, 2021 16:17
-
-
Save alamgircsebd/cd9464c425228edfa525e46880465c43 to your computer and use it in GitHub Desktop.
Removed dokan shipping tab from single product page
This file contains 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
/** | |
* Removed dokan shipping tab from single product page | |
* | |
* @param array $tabs | |
*/ | |
function remove_dokan_registered_product_shipping_tab( $tabs ) { | |
unset( $tabs['shipping'] ); | |
return $tabs; | |
} | |
add_action( 'woocommerce_product_tabs', 'remove_dokan_registered_product_shipping_tab', 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment