Description


The “wpdm_single_file_download_link_label” filter is used to filter the single file download link label of the package before print it.

Parameters


Two arguments are passed to this filter.

$link_label

Single file download link label, Default: “Download”

$package

Array containing all package data

Usage


To change template data.
<?php add_filter('single_file_download_link_label','callback_function',10,2); ?>

Examples

<?php
add_filter('single_file_download_link_label','wpdm_change_signle_file_download_link_label',10,2);
function wpdm_change_signle_file_download_link($link_label, $package){
   $link_label = "Download Now!"
   return $link_label;
}
?>
Last Updated: Apr 9, 2017


Leave a Reply