Skip to content

Instantly share code, notes, and snippets.

@J-H-Mojumder
Created May 13, 2022 03:52
Show Gist options
  • Save J-H-Mojumder/6389e094f219c7093e12ae8ffb48e339 to your computer and use it in GitHub Desktop.
Save J-H-Mojumder/6389e094f219c7093e12ae8ffb48e339 to your computer and use it in GitHub Desktop.
Remove tabs from the single store page.
<?php
//You can use the below-mentioned code to remove any tab from the single store page of Dokan. Just keep the line of unset()
//that you need as per your requirement
add_filter( 'dokan_store_tabs', 'remove_product_tab', 14);
function remove_product_tab( $tabs) {
//unset($tabs['products']); //For removing the product tab
unset($tabs['terms_and_conditions']); //For removing the terms and conditions tab
unset($tabs['reviews']); //For removing the reviews tab
unset($tabs['vendor_biography']); //For removing the biography tab
return $tabs;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment