Title: webec's Replies | WordPress.org

---

# webec

  [  ](https://wordpress.org/support/users/webec/)

 *   [Profile](https://wordpress.org/support/users/webec/)
 *   [Topics Started](https://wordpress.org/support/users/webec/topics/)
 *   [Replies Created](https://wordpress.org/support/users/webec/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/webec/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/webec/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/webec/engagements/)
 *   [Favorites](https://wordpress.org/support/users/webec/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wp_get_attachment_image_attributes ignores fetchpriority](https://wordpress.org/support/topic/wp_get_attachment_image_attributes-ignores-fetchpriority/)
 *  Thread Starter [webec](https://wordpress.org/support/users/webec/)
 * (@webec)
 * [3 weeks, 4 days ago](https://wordpress.org/support/topic/wp_get_attachment_image_attributes-ignores-fetchpriority/#post-18937974)
 * [@bcworkz](https://wordpress.org/support/users/bcworkz/) thanks, I’ll check it
   and tell you if I can do something with ‘wp_kses_allowed_html’ filter.
 * [@mbigul](https://wordpress.org/support/users/mbigul/) Astra told me I could 
   add fetchpriority to my features image as I was already doing but not working.
   WP-Rocket told me to install the Disable Critical Images Optimization plugin (
   [https://docs.wp-rocket.me/article/1816-optimize-critical-images#how-to-deactivate-this-feature](https://docs.wp-rocket.me/article/1816-optimize-critical-images#how-to-deactivate-this-feature))
   to make ‘wp_get_attachment_image_attributes’ function work, but nothing changed.
 * I performed additional tests.
   Custom attributes such as data-test, data-pepito,
   and data-fetchpriority are preserved correctly in the final HTML.The loading=”
   eager” attribute is also preserved.However, both fetchpriority=”high” and decoding
   =”async” are removed from the final HTML when added through wp_get_attachment_image_attributes().
   This makes me think that WordPress is not simply filtering unknown attributes,
   but that fetchpriority and decoding are being specifically recalculated or overridden
   later by WordPress image optimization functions.
 * Could this be related to wp_get_loading_optimization_attributes() or another 
   image optimization routine introduced in recent WordPress versions?
    -  This reply was modified 3 weeks, 4 days ago by [webec](https://wordpress.org/support/users/webec/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] CSS syntax error in tag ‘style amp-custom’](https://wordpress.org/support/topic/css-syntax-error-in-tag-style-amp-custom-29/)
 *  [webec](https://wordpress.org/support/users/webec/)
 * (@webec)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/css-syntax-error-in-tag-style-amp-custom-29/#post-18444410)
 * I’m having the same issue since 2025.04.22, and I don’t know who is adding it
 * `<style amp-custom="">`
 * ![](https://wordpress.org/f44a6e36-dd55-4019-937f-881890d32907)

Viewing 2 replies - 1 through 2 (of 2 total)