Description


Using this filter you want to control the uploaded file path or name

Parameters


One parameter is passed to this hook.

Usage


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

Examples


<?php

add_filter('wpdm_after_upload_file','wpdm_after_upload_file',10,1);

function wpdm_change_speed($filename){
//todo: Change file name, path or whatever operation your need on file name/path.
return $filename;
}

?>
Last Updated: Mar 20, 2017


Leave a Reply