Filter Reference

wpdm_download_link

1 min read Updated Jan 26, 2026

Description


Use this filter to apply any change on download link before rendering it on page

 

Parameters


Two parameters are passed to this hook.

Usage


<?php add_filter('wpdm_download_link','wpdm_download_link',10,2);  ?>

Examples


<?php
add_filter('wpdm_download_link','wpdm_download_link', 10, 2);
// $package is an array containing current package info 
function wpdm_download_link($package){ 
  // Do your thing with $package
  return $package;
}

?>