Replies: 0
I need to change and rename the default upload folder in job manager for more security and protection
Found this code, but its only change the location and the folder name “job-manager-upload” remains the same.
add_filter( 'job_manager_upload_dir', 'my_custom_job_manager_upload_dir' );
function my_custom_job_manager_upload_dir( $job_manager_uploading_file ) {
// This is the default below
// $dir = 'job-manager-uploads/' . $job_manager_uploading_file;
// This is using a custom directory, make sure to add $job_manager_uploading_file to the end of the string
$dir = 'custom_jm_uploads/' . $job_manager_uploading_file;
return $dir;
}
can anyone provide custom function code to rename this folder, or any other solution?
- This topic was modified 36 minutes ago by zagrox. Reason: code was not accure