wpdm_download_filename

Description Use this filter to update file name before download Parameters Two parameters are passed to this hook. Usage <?php add_filter(‘wpdm_download_filename’,’wpdm_change_filename’,10,2);  ?> Examples <?php add_filter(‘wpdm_download_filename’,’wpdm_change_filename’,10,2); // $menu_items is an array containing current menu items function wpdm_change_filename($filename, $package){ //code to //change filename return $filename; } ?>