Docs / Filter Reference / wpdm_before_download

wpdm_before_download

Description


Using this filter you can modify the package settings before serving download.

 

Usage


<?php add_filter('wpdm_before_download','callbabck_function',10,1);  ?>

Examples

<?php 
add_filter('wpdm_before_download','wpdm_before_download_package',10,1); 

function wpdm_before_download_package($package) { 
  //todo: Modify any package settings. This changes made here are only for current requested download if you do not update the option. 
  return $package; 
} 
?>

 

Last updated on January 26, 2026

Need Help?

Get support from our team or community forum.

Visit Support

Customization

Need custom features? We can help.

Request Quote