{"id":12170430,"date":"2019-11-24T23:08:12","date_gmt":"2019-11-24T23:08:12","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/improve-lazy-load-add_filter-priority\/"},"modified":"2019-11-24T23:10:21","modified_gmt":"2019-11-24T23:10:21","slug":"improve-lazy-load-add_filter-priority","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/improve-lazy-load-add_filter-priority\/","title":{"rendered":"Improve Lazy Load add_filter priority"},"content":{"rendered":"<p>Hello,<\/p>\n<p>as a SiteGround client I&#8217;m using SG Optimizer for my website.<\/p>\n<p>I was not happy with my theme lazy load built-in functionality so I decided to switch with the SG Optimizer one.<\/p>\n<p>When I enabled it for the first time it didn&#8217;t work. So after an investigation I&#8217;ve discovered that my theme was overriding the change made by the class Lazy_Load_Images by using different levels of priority.<\/p>\n<p>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.<\/p>\n<p>It would be nice if you could solve this issue in future updates so that I don&#8217;t have to modify the plugin every time a new version is released.<\/p>\n<p>Best regards<\/p>\n","protected":false},"template":"","class_list":["post-12170430","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12170430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":3,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12170430\/revisions"}],"predecessor-version":[{"id":12170435,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12170430\/revisions\/12170435"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12170430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}