Changing the path of the H5P uploads
Submitted by Jeffreyzhang on Thu, 11/26/2020 - 08:16
Hello, I have read another thread regarding using CDN for WordPress site. https://h5p.org/node/931690, Now I am facing another problem. I am using another plugin to automatically upload media library files to OSS. I noticed all of H5p resources stored in Uploads directory, and if files automatically uploaded to OSS, Images from H5p cannot be loaded. So, I guess the way to solve this problem should be to change the path of the resource of H5P (remove from WP uploads folder and put them to another folder). Can you guys share me a piece of code to implement my requirement? Thank you so much!