Description


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

 

Usage


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

Examples


<?php

add_filter('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: Jan 13, 2018


Leave a Reply