Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alamgircsebd/86a91023b1bac81f03934d1649d8f102 to your computer and use it in GitHub Desktop.
Save alamgircsebd/86a91023b1bac81f03934d1649d8f102 to your computer and use it in GitHub Desktop.
Remove external product type for dokan vendors
/**
* 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 );
@alamgircsebd
Copy link
Author

alamgircsebd commented Mar 31, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment