I'm very inexperienced with regex, however I'm trying to create a function that filters through
get_the_content() in order to modify the SRC of all images. The intended purpose would be to modify the URL's to use
http://i0.wp.com/ instead of
http://. This would allow posts to utilize the Photon API without needing the JS side of Photon..
I know I need to hook into
the_content() using a filter in order to accomplish this, but I was unable to accoplish this using
str_replace(), so I'm assuming using
preg_replace() would work.
Also, if it's possible to add
?quality=70&strip=all to the end of the URL this would help decrease page speed.