[ad_1]
Hi I try to use the following code snippet but the files I upload are always in the standard media folder.
Is there a way to enable a log or something so that I could check if the code from below is working?
/**
* Define a specific directory for files uploaded through the File Upload addon.
*
* @link
*/
function
wpf_dev_upload_root(
$path
) {
//Define a specific directory here
$path
=
'/home/mysitedomain/public_html/custom-dir'
;
return
$path
;
}
add_filter(
'wpforms_upload_root'
,
'wpf_dev_upload_root'
, 10, 1 );
The page I need help with: [log in to see the link]