Home Forums Theme Support Dokan Include template-tags.php

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Nayem 4 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29871

    Christophe
    Member

    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 ) ) {
    ?>

     

    account-migration/seller/” class=”button button-primary”>< ?php _e( 'Become a Seller', 'dokan' ); ?>

    #29993

    Nayem
    Moderator
    Post count: 6480

    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 🙂

    #30384

    Nayem
    Moderator
    Post count: 6480

    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 3 posts - 1 through 3 (of 3 total)

The topic ‘Include template-tags.php’ is closed to new replies.