[wp-trac] [WordPress Trac] #56002: Filter is missing?

WordPress Trac noreply at wordpress.org
Fri Jun 17 13:28:39 UTC 2022

#56002: Filter is missing?
 Reporter:  gorostas      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |

 based on this page [https://make.wordpress.org/core/2020/01/29/lazy-
 loading-images-in-wordpress-core/] there is this filter - that I tried to
 hook on `wp_set_image_loading_attr` - but it's not working.

 To be sure `grep -r "wp_set_image_loading_attr" --include=*.php` in web
 root returns nothing.. so - two things here:
 - documentation is obsolete.
 - functionality is crippled.

 I needed this hook today (but surely there will be others) to be able to
 selectively (per image) turn lazy ON|OFF .. and `wp_lazy_loading_enabled`
 can't fit it because it's global.

 Thanks, Kres

Ticket URL: <https://core.trac.wordpress.org/ticket/56002>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list