• Resolved dimakdoor

    (@dimakdoor)


    Hello,

    I am using default link template and found the code below to change the Download text, but it does not work. I just pasted this to Code Snippets because I am using Oxygen Builder. So, no themes.

    Can someone help me why it is not working?

    <?php
    add_filter('wpdm_after_prepare_package_data','wpdm_modify_package_data',10,1);
    function wpdm_modify_package_data($vars){
    //your code here
    $vars['link_label'] = "Custom Text"; 
    return $vars;
    }
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Nayeem Hyder

    (@nriddhi)

    Hi,

    What you are trying to do, are you trying to do bulk changing the download link text? I think the below code snippet can help you for bulk applying download text,

    function wpdm_html_link_label($data, $ID){
        $data['link_label'] = 'download now';
        return $data;
    }
    add_filter('wpdm_custom_data','wpdm_html_link_label', 10, 2);

    please let me know if it helps you

    thanks

    Thread Starter dimakdoor

    (@dimakdoor)

    Thank you very much! It worked like a charm.

    Plugin Support Nayeem Hyder

    (@nriddhi)

    If you like our services, you can give us a 5* review in the review section, we shall encourage in our work

    thank you again

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Download Link Text’ is closed to new replies.