Created
March 31, 2021 06:52
-
-
Save alamgircsebd/86a91023b1bac81f03934d1649d8f102 to your computer and use it in GitHub Desktop.
Remove external product type for dokan vendors
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
/** | |
* Remove external product type for dokan vendors | |
* | |
* @param array $types | |
* | |
* @return array $types | |
*/ | |
function dokan_get_product_types_remove_external_type( $types ) { | |
unset( $types['external'] ); | |
return $types; | |
} | |
add_filter( 'dokan_product_types', 'dokan_get_product_types_remove_external_type', 35 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
after add this code if still show the Product ulr and Button text fields please add this css codes on your custom/additional css box
.dokan-external-product-content{ display:none !important; }
this is an issue and this issue already fixed on dokan, it waiting for next release