Hello,
You can use ‘ssa_change_file_upload_path’ filter to change upload directory path. Following is sample code:
add_filter(‘ssa_change_file_upload_path’,’change_upload_directory’,10,1);
function change_upload_directory($path)
{
$url = ‘New directory url’
return $url;
}
Hi, thnx for the response.
When I add this code to the plugin I get an HTTP 500 – Internal Server Error on my website.
add_filter(‘ssa_change_file_upload_path’,’change_upload_directory’,10,1);
function change_upload_directory($path)
{
$url = ‘http://sample.com/images’
return $url;
}
Hi,
You have missed ; after $url = ‘http://sample.com/images’ line
It should be $url = ‘http://sample.com/images’;
Hello,
I added this to the end of the eea-file.php
and still getting 500 error on my site.
add_filter(‘ssa_change_file_upload_path’,’change_upload_directory’,10,1);
function change_upload_directory($path)
{
$url = ‘http://sample.com/images’;
return $url;
}
Hi,
Please share your site credentials on aparnascodex@gmail.com