Snippet to stop appending extra characters to uploaded images not working
-
Hi, I have USP setup with the frontend form and I tried the snippet (below) from your docs to stop the extra characters being appended to the filenames, but it doesnt work in our setup. We have ShortPixel Image Optimizer installed and activated and it seems to fire before anything else (including the snippet you’ve provided for). So, it looks like it takes priority on the uploaded media. I have tried setting the snippet priority but nothing seems to avoid ShortPixel firing first. Any ideas would be greatly appreciated.
Many thanks for the wonderful plugin btw! ??
function usp_customize_filename_append($append) { return ''; } add_filter('usp_filename_append', 'usp_customize_filename_append');
The page I need help with: [log in to see the link]
- The topic ‘Snippet to stop appending extra characters to uploaded images not working’ is closed to new replies.