Created
May 13, 2022 03:52
-
-
Save J-H-Mojumder/6389e094f219c7093e12ae8ffb48e339 to your computer and use it in GitHub Desktop.
Remove tabs from the single store 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
<?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