Include template-tags.php

This topic contains 2 reply and 2 voices, and was last updated by Nayem 9 years, 5 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
November 6, 2014 at 10:46 pm 29871
Nayem Hello, Is it possible when you use th Dokan plugin to copy template-tags.php in my-theme/Dokan/template-tags.php to override the code ? The final goal is to rewrite this function ---------------- function dokan_account_migration_button() { $user = wp_get_current_user(); if ( dokan_is_user_customer( $user->ID ) ) { ?>

 

November 8, 2014 at 11:53 am 29993
Nayem Nayem

Hello Christophe,

I have forward this issue to our developer team. Right now they are in weekend so please allow us some time and i will back to you very soon.

Thank you 🙂

November 13, 2014 at 2:46 pm 30384
Nayem Nayem

Hello Christophe,

No need to use priority in remove_action. You have to write this like- remove_action( ‘woocommerce_after_my_account’, ‘dokan_account_migration_button’,);. Now you can write your own function. Then in add_action line you have to insert your own function name. Please let me know.

Thank you 🙂

Viewing 2 Posts - 1 through 2 (of 2 total)