![Using DOMDocument to add data attributes to images in Wordpress - Wp-starter - Wordpress services, tutorials and news Using DOMDocument to add data attributes to images in Wordpress - Wp-starter - Wordpress services, tutorials and news](https://www.wp-starter.com/wp-content/uploads/HTMLDocument-add-attributes.png)
Using DOMDocument to add data attributes to images in Wordpress - Wp-starter - Wordpress services, tutorials and news
![How to get content in WordPress using the_content(), the_title() | Wordpress development in hindi - YouTube How to get content in WordPress using the_content(), the_title() | Wordpress development in hindi - YouTube](https://i.ytimg.com/vi/20rg4KSufBM/hqdefault.jpg)
How to get content in WordPress using the_content(), the_title() | Wordpress development in hindi - YouTube
![Joe Hall on Twitter: "add_filter('the_content','lazyIMG'); function lazyIMG($content) { $content = str_replace('<img','<img loading="lazy"', $content); return $content; }" / Twitter Joe Hall on Twitter: "add_filter('the_content','lazyIMG'); function lazyIMG($content) { $content = str_replace('<img','<img loading="lazy"', $content); return $content; }" / Twitter](https://pbs.twimg.com/media/EchIETBXkAYuU3D.jpg)
Joe Hall on Twitter: "add_filter('the_content','lazyIMG'); function lazyIMG($content) { $content = str_replace('<img','<img loading="lazy"', $content); return $content; }" / Twitter
![filters - Hook added to the_content seems to be called multiple times - WordPress Development Stack Exchange filters - Hook added to the_content seems to be called multiple times - WordPress Development Stack Exchange](https://i.stack.imgur.com/nhaFj.png)