Improve Lazy Load add_filter priority
-
Hello,
as a SiteGround client I’m using SG Optimizer for my website.
I was not happy with my theme lazy load built-in functionality so I decided to switch with the SG Optimizer one.
When I enabled it for the first time it didn’t work. So after an investigation I’ve discovered that my theme was overriding the change made by the class Lazy_Load_Images by using different levels of priority.
In order to solve the issue I had to modify the priorities of all the add_filter functions called in the Lazy_Load_Images class that in the latest version of the plugin are using the default value.
It would be nice if you could solve this issue in future updates so that I don’t have to modify the plugin every time a new version is released.
Best regards
- The topic ‘Improve Lazy Load add_filter priority’ is closed to new replies.