Search code examples
phpwordpressdokan

How do you remove/edit the Dokan Store Tabs


I am using Dokan for a listings site. The core set of products that will be used are bookable products.

As such I want to rename the products field to 'Bookings'. I have digging around in the plugin template files and can find where the tabs are included in the store template but can't seem to find where the actual tabs are defined.

Any help would be awesome thanks. For reference below the code where the tabs are being included:

    <?php if ( $store_tabs ) { ?>
<div class="dokan-store-tabs<?php echo $no_banner_class_tabs; ?>">
    <ul class="dokan-list-inline">
        <?php foreach( $store_tabs as $key => $tab ) { ?>
            <li><a href="<?php echo esc_url( $tab['url'] ); ?>"><?php echo $tab['title']; ?></a></li>
        <?php } ?>
        <?php do_action( 'dokan_after_store_tabs', $store_user->get_id() ); ?>
    </ul>
</div>

I am also having an issue with the reviews page (I removed the sidebars from store.php and store-review.php in child theme folder) and reviews page now just loads header and footer of my theme).


Solution

  • Managed to figure out how to do it.

    In the dokan plugin folder navigate to the includes folder. Inside this folder there is a functions.php file.

    Search for 'dokan_get_store_tabs('

    Find and replace Products with text of your choice within this function.