• Resolved hmchenaran.s

    (@hmchenarans)


    I’m building a plugin for the Dokan.

    I want dokan templates to be called from my plugin. Not from dokan plugin or site template.

    In WooCommerce this can be done using the woocommerce_locate_template hook.

Viewing 1 replies (of 1 total)
  • Hi @hmchenarans,

    You can use the following filter hooks based on your requirement to call a custom template from a plugin:

    • dokan_get_template_part
    • dokan_locate_template

    For more information, you can take a look at the following file:

    • Filename: functions.php
    • Path: wp-content/plugins/dokan-lite/includes

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Load Dokan Template from My Plugin’ is closed to new replies.